mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
Don't double save nodeDB on shutdown
This commit is contained in:
parent
6dfc00d6ae
commit
2a9f9e97a9
@ -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
|
||||
|
@ -41,6 +41,7 @@ void powerCommandsCheck()
|
||||
}
|
||||
|
||||
if (shutdownAtMsec && millis() > shutdownAtMsec) {
|
||||
shutdownAtMsec = 0;
|
||||
power->shutdown();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user