Fix minimal binary fast reboot issue

This commit is contained in:
Theo Arends 2020-07-15 16:09:32 +02:00
parent 6f52b0f7cc
commit 06c06705dd
1 changed files with 4 additions and 0 deletions

View File

@ -211,7 +211,11 @@ void setup(void) {
if (!RtcRebootValid()) {
RtcReboot.fast_reboot_count = 0;
}
#ifdef FIRMWARE_MINIMAL
RtcReboot.fast_reboot_count = 0; // Disable fast reboot and quick power cycle detection
#else
RtcReboot.fast_reboot_count++;
#endif
RtcRebootSave();
Serial.begin(APP_BAUDRATE);