This commit is contained in:
Bodmer 2020-02-16 18:50:39 +00:00 committed by GitHub
parent da9de94fb1
commit 55e97ffe33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
if ( (color >> 8) == (color & 0x00FF) ) if ( (color >> 8) == (color & 0x00FF) )
{ if (!len) return; { if (!len) return;
tft_Write_16(color); WR_L; WR_H; tft_Write_16(color);
while (--len) {WR_L; WR_H; WR_L; WR_H;} while (--len) {WR_L; WR_H; WR_L; WR_H;}
} }
else while (len--) {tft_Write_16(color);} else while (len--) {tft_Write_16(color);}