Update GUIThread.cpp

This commit is contained in:
Ben V. Brown
2021-04-29 21:52:04 +10:00
parent 5114b4243b
commit b817c33181

View File

@@ -381,6 +381,7 @@ static int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) {
} }
return 0; return 0;
} }
#ifndef NO_SLEEP_MODE
static void display_countdown(int sleepThres) { static void display_countdown(int sleepThres) {
/* /*
@@ -398,7 +399,6 @@ static void display_countdown(int sleepThres) {
} }
} }
static uint32_t getSleepTimeout() { static uint32_t getSleepTimeout() {
#ifndef NO_SLEEP_MODE
if (systemSettings.sensitivity && systemSettings.SleepTime) { if (systemSettings.sensitivity && systemSettings.SleepTime) {
@@ -409,9 +409,9 @@ static uint32_t getSleepTimeout() {
sleepThres = (systemSettings.SleepTime - 5) * 60 * 1000; sleepThres = (systemSettings.SleepTime - 5) * 60 * 1000;
return sleepThres; return sleepThres;
} }
#endif
return 0; return 0;
} }
#endif
static bool shouldBeSleeping(bool inAutoStart) { static bool shouldBeSleeping(bool inAutoStart) {
#ifndef NO_SLEEP_MODE #ifndef NO_SLEEP_MODE
// Return true if the iron should be in sleep mode // Return true if the iron should be in sleep mode