From: Eugene Crosser Date: Thu, 25 Jul 2024 18:08:24 +0000 (+0200) Subject: Fix "old values" pointing to wrong cells X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=c9c126b707693ff6d3670a1fa99a77b0e09f82f6;p=ThermoBeaconDisplay.git Fix "old values" pointing to wrong cells --- diff --git a/ThermoBeaconDisplay.cpp b/ThermoBeaconDisplay.cpp index 6b0230a..cee308b 100644 --- a/ThermoBeaconDisplay.cpp +++ b/ThermoBeaconDisplay.cpp @@ -166,15 +166,15 @@ void dispel(int oldv, int newv, int xpos, int yf, int yt, int colour) { tft.setViewport(xpos * (tft.width() / 2) + 10, yf + 2, tft.width() / 2 - 12, yt - 4); tft.setTextSize(2); -/* if (oldv) { tft.setCursor(0, 0, 4); tft.setTextColor(TFT_BLACK); tft.print(oldv / 10); tft.print("."); tft.print(oldv % 10); + } else { + tft.fillScreen(TFT_BLACK); } -*/ if (newv) { tft.fillScreen(TFT_BLACK); // TODO: must not have this. Need debugging tft.setCursor(0, 0, 4);