From 34489e067f8a92295b4ffd5bc2aadbe8f01cb217 Mon Sep 17 00:00:00 2001 From: MCelliotG Date: Thu, 18 Apr 2024 14:19:22 +0300 Subject: [PATCH] Two integer battery indication --- TEF6686_ESP32.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index bb725f5..2229dca 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -3401,7 +3401,7 @@ void ShowBattery() { float vPer = constrain((batteryV - BATTERY_LOW_VALUE) / (BATTERY_FULL_VALUE - BATTERY_LOW_VALUE), 0.0, 0.99) * 100; if (abs(batteryV - batteryVold) > 0.05 && batteryoptions == BATTERY_VALUE) { - tftPrint(-1, String(batteryV, 1) + "V", 279, 9, BatteryValueColor, BatteryValueColorSmooth, 16); + tftPrint(-1, String(batteryV, 2) + "V", 279, 9, BatteryValueColor, BatteryValueColorSmooth, 16); batteryVold = batteryV; } else if (int(vPer) != int(vPerold) && batteryoptions == BATTERY_PERCENT && abs(vPer - vPerold) > 0.5) { tftPrint(-1, String(vPer, 0) + "%", 279, 9, BatteryValueColor, BatteryValueColorSmooth, 16);