1
0
forked from me/IronOS

add missing comment and exclude sleep code if sleep is disabled

This commit is contained in:
Laura Klünder
2023-04-24 13:46:18 +02:00
parent d053c38740
commit 366cfbd794
2 changed files with 18 additions and 0 deletions

View File

@@ -240,6 +240,22 @@ const menuitem solderingMenu[] = {
* Temp Change Short Step
* Temp Change Long Step
* Locking Mode
* Profile Phases
* Profile Preheat Temperature
* Profile Preheat Max Temperature Change Per Second
* Profile Phase 1 Temperature
* Profile Phase 1 Duration (s)
* Profile Phase 2 Temperature
* Profile Phase 2 Duration (s)
* Profile Phase 3 Temperature
* Profile Phase 3 Duration (s)
* Profile Phase 4 Temperature
* Profile Phase 4 Duration (s)
* Profile Phase 5 Temperature
* Profile Phase 5 Duration (s)
* Profile Phase 6 Temperature
* Profile Phase 6 Duration (s)
* Profile Cooldown Max Temperature Change Per Second
*/
{SETTINGS_DESC(SettingsItemIndex::BoostTemperature), setBoostTemp, displayBoostTemp, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::BoostTemperature, 5}, /*Boost Temp*/
{SETTINGS_DESC(SettingsItemIndex::AutoStart), nullptr, displayAutomaticStartMode, nullptr, SettingsOptions::AutoStartMode, SettingsItemIndex::AutoStart, 7}, /*Auto start*/

View File

@@ -3,6 +3,7 @@
extern OperatingMode currentMode;
int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) {
#ifndef NO_SLEEP_MODE
// Drop to sleep temperature and display until movement or button press
currentMode = OperatingMode::sleeping;
@@ -66,5 +67,6 @@ int gui_SolderingSleepingMode(bool stayOff, bool autoStarted) {
return 1; // we want to exit soldering mode
}
}
#endif
return 0;
}