mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Link up/down on debug meny
This commit is contained in:
@@ -152,6 +152,9 @@ void guiRenderLoop(void) {
|
|||||||
case TransitionAnimation::Right:
|
case TransitionAnimation::Right:
|
||||||
OLED::transitionSecondaryFramebuffer(true, context.viewEnterTime);
|
OLED::transitionSecondaryFramebuffer(true, context.viewEnterTime);
|
||||||
break;
|
break;
|
||||||
|
case TransitionAnimation::Up:
|
||||||
|
OLED::transitionScrollUp(context.viewEnterTime);
|
||||||
|
|
||||||
case TransitionAnimation::None:
|
case TransitionAnimation::None:
|
||||||
default:
|
default:
|
||||||
break; // Do nothing on unknown
|
break; // Do nothing on unknown
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ OperatingMode showDebugMenu(const ButtonState buttons, guiContext *cxt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (buttons == BUTTON_B_SHORT) {
|
if (buttons == BUTTON_B_SHORT) {
|
||||||
cxt->transitionMode = TransitionAnimation::Up;
|
cxt->transitionMode = TransitionAnimation::Down;
|
||||||
return OperatingMode::InitialisationDone;
|
return OperatingMode::InitialisationDone;
|
||||||
} else if (buttons == BUTTON_F_SHORT) {
|
} else if (buttons == BUTTON_F_SHORT) {
|
||||||
cxt->scratch_state.state1++;
|
cxt->scratch_state.state1++;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ OperatingMode handleHomeButtons(const ButtonState buttons, guiContext *cxt) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BUTTON_B_LONG:
|
case BUTTON_B_LONG:
|
||||||
cxt->transitionMode = TransitionAnimation::Down;
|
cxt->transitionMode = TransitionAnimation::Up;
|
||||||
return OperatingMode::DebugMenuReadout;
|
return OperatingMode::DebugMenuReadout;
|
||||||
break;
|
break;
|
||||||
case BUTTON_F_LONG:
|
case BUTTON_F_LONG:
|
||||||
|
|||||||
Reference in New Issue
Block a user