1
0
forked from me/IronOS

Fixup transition on enter soldering mode

This commit is contained in:
Ben V. Brown
2023-07-22 16:43:54 +10:00
parent 6bb0b015c8
commit 2196e76e22

View File

@@ -38,18 +38,21 @@ OperatingMode handleHomeButtons(const ButtonState buttons, guiContext *cxt) {
return OperatingMode::DebugMenuReadout; return OperatingMode::DebugMenuReadout;
break; break;
case BUTTON_F_LONG: case BUTTON_F_LONG:
cxt->transitionMode = TransitionAnimation::Left;
#ifdef PROFILE_SUPPORT #ifdef PROFILE_SUPPORT
if (!isTipDisconnected()) { if (!isTipDisconnected()) {
cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::SolderingProfile; return OperatingMode::SolderingProfile;
} else {
return OperatingMode::HomeScreen;
} }
#else #else
cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::TemperatureAdjust; return OperatingMode::TemperatureAdjust;
#endif #endif
break; break;
case BUTTON_F_SHORT: case BUTTON_F_SHORT:
cxt->transitionMode = TransitionAnimation::Left;
if (!isTipDisconnected()) { if (!isTipDisconnected()) {
cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::Soldering; return OperatingMode::Soldering;
} }
break; break;