Updated charge status
This commit is contained in:
parent
2ede362cb3
commit
335c6cbc5c
6
Power.h
6
Power.h
|
@ -155,7 +155,11 @@ void measure_battery() {
|
|||
if (bat_voltage_dropping && battery_voltage < BAT_V_FLOAT) {
|
||||
battery_state = BATTERY_STATE_DISCHARGING;
|
||||
} else {
|
||||
battery_state = BATTERY_STATE_CHARGING;
|
||||
if (battery_percent < 100.0) {
|
||||
battery_state = BATTERY_STATE_CHARGING;
|
||||
} else {
|
||||
battery_state = BATTERY_STATE_CHARGED;
|
||||
}
|
||||
}
|
||||
|
||||
// if (bt_state == BT_STATE_CONNECTED) {
|
||||
|
|
Loading…
Reference in New Issue