Skip to content

Commit

Permalink
Fixing issue with 8-bit procs not working
Browse files Browse the repository at this point in the history
  • Loading branch information
makermelissa committed Dec 18, 2019
1 parent a8aff3f commit 181591a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++));
}
}

Expand Down

0 comments on commit 181591a

Please sign in to comment.