1
0
forked from me/IronOS

Enable shutdown from sleep mode

If the iron is in sleep mode it is now possible to shutdown with
a long press on the back button without reheating in-between.
This commit is contained in:
FL550
2021-05-07 17:23:33 +02:00
parent 2f03788631
commit c8ecbe174f

View File

@@ -297,6 +297,9 @@ static bool shouldShutdown() {
}
}
}
if (getButtonState() == BUTTON_B_LONG) { // allow also if back button is pressed long
return true;
}
return false;
}
static int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) {