mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-05-16 11:39:12 +00:00
Prevent boot loop in voltage check (#1171)
* Prevent boot loop if voltage is outside operating range * Fixed code error
This commit is contained in:
@@ -481,6 +481,7 @@ void setup() {
|
||||
debugW_P(PSTR("Voltage is outside optimal range (%.2fV)"), allowedDrift);
|
||||
if(gpioConfig.apPin != 0xFF && digitalRead(gpioConfig.apPin) == LOW) {
|
||||
debugW_P(PSTR("AP button is pressed, skipping voltage wait"));
|
||||
break;
|
||||
} else if(bootCycles < MAX_BOOT_CYCLES) {
|
||||
int secs = MAX_BOOT_CYCLES - bootCycles;
|
||||
if(deepSleep) {
|
||||
|
||||
Reference in New Issue
Block a user