Don't double save nodeDB on shutdown

This commit is contained in:
Jonathan Bennett 2025-07-20 15:31:59 -05:00
parent 6dfc00d6ae
commit 2a9f9e97a9
2 changed files with 2 additions and 1 deletions

View File

@ -700,7 +700,7 @@ void Power::shutdown()
#ifdef PIN_LED3
ledOff(PIN_LED3);
#endif
doDeepSleep(DELAY_FOREVER, false, false);
doDeepSleep(DELAY_FOREVER, false, true);
#elif defined(ARCH_PORTDUINO)
exit(EXIT_SUCCESS);
#else

View File

@ -41,6 +41,7 @@ void powerCommandsCheck()
}
if (shutdownAtMsec && millis() > shutdownAtMsec) {
shutdownAtMsec = 0;
power->shutdown();
}
}