Skip to content

Commit e167179

Browse files
Fix ESP32 stuff
1 parent b0b022d commit e167179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_SPITFT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@ void Adafruit_SPITFT::writeColor(uint16_t color, uint32_t len) {
600600
// Fill temp buffer 32 bits at a time
601601
fillLen = (bufLen + 1) / 2; // Round up to next 32-bit boundary
602602
for(uint32_t t=0; t<fillLen; t++) {
603-
temp[t] = c2;
603+
temp[t] = c32;
604604
}
605605

606606
// Issue pixels in blocks from temp buffer
607607
while(len) { // While pixels remain
608608
xferLen = (bufLen < len) ? bufLen : len; // How many this pass?
609-
writePixels(temp, xferLen);
609+
writePixels((uint16_t *)temp, xferLen);
610610
len -= xferLen;
611611
}
612612
#else

0 commit comments

Comments
 (0)