Fix missed braces and etc

This commit is contained in:
Dmitry Galenko 2022-12-14 10:13:23 +01:00
parent 0386af721d
commit 46f1cee2a8

View File

@ -291,10 +291,10 @@ void Power::readPowerStatus()
if (batteryLevel->getBattVoltage() < MIN_BAT_MILLIVOLTS) {
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
//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 {
low_voltage_counter = 0;
}