Merge pull request #256 from makermelissa/master

Fixing issue with 8-bit procs not working
This commit is contained in:
Melissa LeBlanc-Williams 2019-12-18 15:12:06 -08:00 committed by GitHub
commit 209fa619da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1780,8 +1780,7 @@ void Adafruit_SPITFT::sendCommand(uint8_t commandByte, const uint8_t *dataBytes,
SPI_WRITE16(*(uint16_t *)dataBytes);
dataBytes += 2;
} else {
spiWrite(*dataBytes); // Send the data bytes
dataBytes++;
spiWrite(pgm_read_byte(dataBytes++));
}
}