Merge pull request #272 from makermelissa/master

Removed duplicate spiWrite to fix bbSPI
This commit is contained in:
Melissa LeBlanc-Williams 2020-02-12 08:51:12 -08:00 committed by GitHub
commit cb471e31df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1846,8 +1846,6 @@ void Adafruit_SPITFT::sendCommand(uint8_t commandByte, uint8_t *dataBytes,
SPI_DC_HIGH();
for (int i = 0; i < numDataBytes; i++) {
spiWrite(*dataBytes); // Send the data bytes
dataBytes++;
if ((connection == TFT_PARALLEL) && tft8.wide) {
SPI_WRITE16(*(uint16_t *)dataBytes);
dataBytes += 2;