From c8ecbe174ff6042e797e2946be6abd2cdad8fd17 Mon Sep 17 00:00:00 2001 From: FL550 Date: Fri, 7 May 2021 17:23:33 +0200 Subject: [PATCH] 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. --- source/Core/Threads/GUIThread.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp index ee9c935a..5d994831 100644 --- a/source/Core/Threads/GUIThread.cpp +++ b/source/Core/Threads/GUIThread.cpp @@ -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) {