From 71a222f704768f450c07c5a9251d64b300c0c22f Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 26 Dec 2018 16:46:54 +0000 Subject: [PATCH] Fix #276 Fixes warning/error that is only reported with certain compiler warning flag settings ("All" in Arduino IDE). --- TFT_eSPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 6daac3a..2513076 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -1251,7 +1251,7 @@ void TFT_eSPI::pushImage(int32_t x, int32_t y, uint32_t w, uint32_t h, uint8_t * //else drawPixel((dw-len)+xp,h-dh,bitmap_bg); xp++; } - *ptr++; + ptr++; len -= 8; } @@ -1400,7 +1400,7 @@ void TFT_eSPI::pushImage(int32_t x, int32_t y, uint32_t w, uint32_t h, uint8_t * px++; xp++; } - *ptr++; + ptr++; len -= 8; } if (np) pushColor(bitmap_fg, np);