Merge pull request #536 from MCelliotG/main

Two integer battery indicator and language updates
This commit is contained in:
Sjef Verhoeven PE5PVB
2024-04-18 16:11:13 +02:00
committed by GitHub
2 changed files with 4060 additions and 1 deletions

View File

@@ -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);

4059
language.h Normal file

File diff suppressed because it is too large Load Diff