mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 22:22:05 +00:00
Fix for shutdown banner
This commit is contained in:
parent
bdd03bc853
commit
051e7331f2
@ -735,8 +735,8 @@ bool CannedMessageModule::handleSystemCommandInput(const InputEvent* event) {
|
|||||||
// Power control
|
// Power control
|
||||||
case INPUT_BROKER_MSG_SHUTDOWN:
|
case INPUT_BROKER_MSG_SHUTDOWN:
|
||||||
if (screen) screen->showOverlayBanner("Shutting down...");
|
if (screen) screen->showOverlayBanner("Shutting down...");
|
||||||
shutdownAtMsec = millis() + DEFAULT_SHUTDOWN_SECONDS * 1000;
|
|
||||||
nodeDB->saveToDisk();
|
nodeDB->saveToDisk();
|
||||||
|
shutdownAtMsec = millis() + DEFAULT_SHUTDOWN_SECONDS * 1000;
|
||||||
runState = CANNED_MESSAGE_RUN_STATE_INACTIVE;
|
runState = CANNED_MESSAGE_RUN_STATE_INACTIVE;
|
||||||
return true;
|
return true;
|
||||||
case INPUT_BROKER_MSG_REBOOT:
|
case INPUT_BROKER_MSG_REBOOT:
|
||||||
|
Loading…
Reference in New Issue
Block a user