Skip to content

Commit 209fa61

Browse files
authored
Merge pull request #256 from makermelissa/master
Fixing issue with 8-bit procs not working
2 parents a8aff3f + 181591a commit 209fa61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Adafruit_SPITFT.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,8 +1780,7 @@ void Adafruit_SPITFT::sendCommand(uint8_t commandByte, const uint8_t *dataBytes,
17801780
SPI_WRITE16(*(uint16_t *)dataBytes);
17811781
dataBytes += 2;
17821782
} else {
1783-
spiWrite(*dataBytes); // Send the data bytes
1784-
dataBytes++;
1783+
spiWrite(pgm_read_byte(dataBytes++));
17851784
}
17861785
}
17871786

0 commit comments

Comments
 (0)