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

@@ -70,7 +70,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
{1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
{1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
{360, 900, 1, VOLTAGE_DIV}, // VoltageDiv
{100, 580, 10, BOOST_TEMP}, // BoostTemp
{0, MAX_TEMP_F, 10, BOOST_TEMP}, // BoostTemp
{100, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
{0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
{0, 2, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled

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) {