1
0
forked from me/IronOS
This commit is contained in:
Ben V. Brown
2021-10-02 15:03:50 +10:00
parent 3594604efc
commit d6af4654b3
2 changed files with 4 additions and 4 deletions

View File

@@ -513,11 +513,11 @@ static bool settings_setBoostTemp(void) {
value += 20; // Go up 20F at a time
}
if (value > MAX_TEMP_F) {
if (value >= MAX_TEMP_F) {
value = 0; // jump to off
}
setSettingValue(SettingsOptions::BoostTemp, value);
return value == MAX_TEMP_F - 10;
return value >= (MAX_TEMP_F - 10);
}
if (value == 0) {
value = MIN_BOOST_TEMP_C; // loop back at 250
@@ -528,7 +528,7 @@ static bool settings_setBoostTemp(void) {
value = 0; // Go to off state
}
setSettingValue(SettingsOptions::BoostTemp, value);
return value == MAX_TEMP_C;
return value >= MAX_TEMP_C;
}
static void settings_displayBoostTemp(void) {