1
0
forked from me/IronOS

Merge pull request #2042 from Ralim/fix-op-mode-enum

Allocate fixed ID's for Operating Modes
This commit is contained in:
Ben V. Brown
2025-01-06 13:05:01 +11:00
committed by GitHub

View File

@@ -25,20 +25,20 @@ extern "C" {
#endif #endif
enum class OperatingMode { enum class OperatingMode {
StartupLogo = 0, // Showing the startup logo StartupLogo=10, // Showing the startup logo
CJCCalibration, // Cold Junction Calibration CJCCalibration=11, // Cold Junction Calibration
StartupWarnings, // Startup checks and warnings StartupWarnings=12, // Startup checks and warnings
InitialisationDone, // Special state we use just before we to home screen at first startup. Allows jumping to extra startup states InitialisationDone=13, // Special state we use just before we to home screen at first startup. Allows jumping to extra startup states
HomeScreen, // Home/Idle screen that is the main launchpad to other modes HomeScreen=0, // Home/Idle screen that is the main launchpad to other modes
Soldering, // Main soldering operating mode Soldering=1, // Main soldering operating mode
SolderingProfile, // Soldering by following a profile, used for reflow for example SolderingProfile=6, // Soldering by following a profile, used for reflow for example
Sleeping, // Sleep state holds iron at lower sleep temp Sleeping=3, // Sleep state holds iron at lower sleep temp
Hibernating, // Like sleeping but keeps heater fully off until woken Hibernating=14, // Like sleeping but keeps heater fully off until woken
SettingsMenu, // Settings Menu SettingsMenu=4, // Settings Menu
DebugMenuReadout, // Debug metrics DebugMenuReadout=5, // Debug metrics
TemperatureAdjust, // Set point temperature adjustment TemperatureAdjust=7, // Set point temperature adjustment
UsbPDDebug, // USB PD debugging information UsbPDDebug=8, // USB PD debugging information
ThermalRunaway, // Thermal Runaway warning state. ThermalRunaway=9, // Thermal Runaway warning state.
}; };
enum class TransitionAnimation { enum class TransitionAnimation {