mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-30 11:23:53 +00:00
Fix missed braces and etc
This commit is contained in:
parent
0386af721d
commit
46f1cee2a8
@ -291,10 +291,10 @@ void Power::readPowerStatus()
|
|||||||
if (batteryLevel->getBattVoltage() < MIN_BAT_MILLIVOLTS) {
|
if (batteryLevel->getBattVoltage() < MIN_BAT_MILLIVOLTS) {
|
||||||
low_voltage_counter++;
|
low_voltage_counter++;
|
||||||
DEBUG_MSG("Warning RAK4631 Low voltage counter: %d/10\n", low_voltage_counter);
|
DEBUG_MSG("Warning RAK4631 Low voltage counter: %d/10\n", low_voltage_counter);
|
||||||
if (low_voltage_counter > 10)
|
if (low_voltage_counter > 10) {
|
||||||
// We can't trigger deep sleep on NRF52, it's freezing the board
|
// We can't trigger deep sleep on NRF52, it's freezing the board
|
||||||
//powerFSM.trigger(EVENT_LOW_BATTERY);
|
//powerFSM.trigger(EVENT_LOW_BATTERY);
|
||||||
DEBUG_MSG("Low voltage detected, but not triggering deep sleep\n")
|
DEBUG_MSG("Low voltage detected, but not triggering deep sleep\n");
|
||||||
} else {
|
} else {
|
||||||
low_voltage_counter = 0;
|
low_voltage_counter = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user