Skip to content

Commit

Permalink
Merge pull request #1338 from aaronjamt/boot-anim-preheating
Browse files Browse the repository at this point in the history
Allow preheating iron during boot logo (fixes #1334)
  • Loading branch information
Ralim authored Jul 31, 2022
2 parents 543107e + 972d2ff commit c28a862
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/Core/Threads/GUIThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,22 @@ void startGUITask(void const *argument) {
}
#endif
#endif
// If the boot logo is enabled (but it times out) and the autostart mode is enabled (but not set to sleep w/o heat), start heating during boot logo
if (getSettingValue(SettingsOptions::LOGOTime) > 0 &&
getSettingValue(SettingsOptions::LOGOTime) < 5 &&
getSettingValue(SettingsOptions::AutoStartMode) > 0 &&
getSettingValue(SettingsOptions::AutoStartMode) < 3) {
uint16_t sleepTempDegC;
if (getSettingValue(SettingsOptions::TemperatureInF)) {
sleepTempDegC = TipThermoModel::convertFtoC(getSettingValue(SettingsOptions::SleepTemp));
} else {
sleepTempDegC = getSettingValue(SettingsOptions::SleepTemp);
}
// Only heat to sleep temperature (but no higher than 75*C for safety)
currentTempTargetDegC = min(sleepTempDegC, 75);
}


BootLogo::handleShowingLogo((uint8_t *)FLASH_LOGOADDR);

showWarnings();
Expand Down

0 comments on commit c28a862

Please sign in to comment.