From b817c33181325361152287e057e9df85b56a8391 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Thu, 29 Apr 2021 21:52:04 +1000 Subject: [PATCH] Update GUIThread.cpp --- source/Core/Threads/GUIThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp index 1842ee76..795820f6 100644 --- a/source/Core/Threads/GUIThread.cpp +++ b/source/Core/Threads/GUIThread.cpp @@ -381,6 +381,7 @@ static int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) { } return 0; } +#ifndef NO_SLEEP_MODE static void display_countdown(int sleepThres) { /* @@ -398,7 +399,6 @@ static void display_countdown(int sleepThres) { } } static uint32_t getSleepTimeout() { -#ifndef NO_SLEEP_MODE if (systemSettings.sensitivity && systemSettings.SleepTime) { @@ -409,9 +409,9 @@ static uint32_t getSleepTimeout() { sleepThres = (systemSettings.SleepTime - 5) * 60 * 1000; return sleepThres; } -#endif return 0; } +#endif static bool shouldBeSleeping(bool inAutoStart) { #ifndef NO_SLEEP_MODE // Return true if the iron should be in sleep mode