Skip to content

Commit f31c435

Browse files
Fix cast for ESP32 writeBytes()
1 parent c288843 commit f31c435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_SPITFT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len, bool block,
10071007
if (!bigEndian) {
10081008
hwspi._spi->writePixels(colors, len * 2); // Inbuilt endian-swap
10091009
} else {
1010-
hwspi._spi->writeBytes(colors, len * 2); // Issue bytes direct
1010+
hwspi._spi->writeBytes((uint8_t *)colors, len * 2); // Issue bytes direct
10111011
}
10121012
return;
10131013
}

0 commit comments

Comments
 (0)