Skip to content

Commit 21ce141

Browse files
committed
Fixed compilation error with the latest ESP-IDF
TFT_eSprite::pushColor(color, len) should pass the first argument to writeColor even when _btt == 1.
1 parent 2a1b0ac commit 21ce141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utility/Sprite.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ void TFT_eSprite::pushColor(uint32_t color, uint16_t len)
523523
else if (_bpp == 8)
524524
pixelColor = (color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3;
525525

526-
// else Nothing to do for 1bpp
526+
else
527+
pixelColor = color;
527528

528529
while(len--) writeColor(pixelColor);
529530
}

0 commit comments

Comments
 (0)