From c2e697d13b367cb5ef5aed4eb0b663cd1c70458c Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Mon, 10 Jun 2024 19:07:38 +0200 Subject: [PATCH] Small GUI correction on modulation meter --- TEF6686_ESP32.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index ad3ce61..7b28737 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -3301,12 +3301,12 @@ void ShowModLevel() { } } - tft.fillRect(16, 133, 2 * constrain(DisplayedSegments, 0, 53), 6, ModBarInsignificantColor); + tft.fillRect(16, 133, 2 * constrain(DisplayedSegments, 0, 54), 6, ModBarInsignificantColor); - if (DisplayedSegments > 53) tft.fillRect(16 + 2 * 53, 133, 2 * (DisplayedSegments - 53), 6, ModBarSignificantColor); + if (DisplayedSegments > 54) tft.fillRect(16 + 2 * 54, 133, 2 * (DisplayedSegments - 54), 6, ModBarSignificantColor); int greyStart = 16 + 2 * DisplayedSegments; - int greyWidth = 2 * (94 - DisplayedSegments); // Calculate the remaining width correctly + int greyWidth = 2 * (94 - DisplayedSegments); tft.fillRect(greyStart, 133, greyWidth, 6, GreyoutColor); int peakHoldPosition = 16 + 2 * constrain(peakholdold, 0, 93);