Improve SOC and load LED behavior at low SOC

This commit prevents that the SOC bar shows 2 LEDs already even though the load is still switched of because of low voltage.
This commit is contained in:
Martin Jaeger
2019-07-11 17:50:40 +02:00
parent 3a2af7ccc7
commit 17b044d941
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ int main()
eeprom_update();
leds_update_1s();
leds_update_soc(charger.soc);
leds_update_soc(charger.soc, load.switch_state == LOAD_STATE_OFF_LOW_SOC);
uext_process_1s();
thingset_serial_process_1s();