From c9c126b707693ff6d3670a1fa99a77b0e09f82f6 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Thu, 25 Jul 2024 20:08:24 +0200 Subject: [PATCH] Fix "old values" pointing to wrong cells --- ThermoBeaconDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.43.0