From 7f74892b8fba773aee552393de2b2b10ff8f8f5e Mon Sep 17 00:00:00 2001 From: MCelliotG Date: Sat, 19 Aug 2023 01:41:46 +0300 Subject: [PATCH] Fix battery bar fill orientation (right to left) --- TEF6686_ESP32.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index ae04f1f..06b6a5a 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -2820,7 +2820,7 @@ void ShowBattery() { tft.fillRect(313, 13, 4, 6, ActiveColor); } tft.fillRect(279, 8, 33, 16, BackgroundColor); - if (batteryoptions != BATTERY_VALUE && batteryoptions != BATTERY_PERCENT) tft.fillRect(279, 24 - (battery * 4), 33, battery * 4, BarInsignificantColor); + if (batteryoptions != BATTERY_VALUE && batteryoptions != BATTERY_PERCENT) tft.fillRect(279, 8, 17 + (battery * 4), 16, BarInsignificantColor); } else { tft.drawRect(277, 6, 37, 20, GreyoutColor); tft.fillRect(313, 13, 4, 6, GreyoutColor);