diff Discovery/Src/tMenuEditSystem.c @ 671:b456be1e152d Betatest

Support of unknown charging counter values: The RTE now provides negativ charge counter values in case the counter value has not yet been confirmed by a completed charge cycle. Some condition checks needed to be updated to be compatible with the usage of negativ values.
author Ideenmodellierer
date Sat, 12 Mar 2022 22:58:22 +0100
parents 16833cd3a2f5
children 4f70155362d2
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c	Sat Mar 12 22:54:26 2022 +0100
+++ b/Discovery/Src/tMenuEditSystem.c	Sat Mar 12 22:58:22 2022 +0100
@@ -1081,7 +1081,7 @@
 #endif
 
 
-        if(stateRealGetPointer()->lifeData.battery_charge == 0)
+        if(stateRealGetPointer()->lifeData.battery_charge <= 0)
         {
             text[0] = TXT_2BYTE;
             text[1] = TXT2BYTE_SetBatteryCharge;