mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-08-09 06:42:34 -04:00
Update battery status output on missing battery
This commit is contained in:
parent
2804a05afd
commit
5bd2e539eb
2 changed files with 7 additions and 6 deletions
2
Power.h
2
Power.h
|
@ -190,7 +190,7 @@ void measure_battery() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
battery_state = BATTERY_STATE_DISCHARGING;
|
||||
battery_state = BATTERY_STATE_UNKNOWN;
|
||||
battery_percent = 0.0;
|
||||
battery_voltage = 0.0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue