1
0
forked from me/IronOS

Link up/down on debug meny

This commit is contained in:
Ben V. Brown
2023-07-22 17:55:15 +10:00
parent a80db0af5a
commit 964d37a8e8
3 changed files with 5 additions and 2 deletions

View File

@@ -152,6 +152,9 @@ void guiRenderLoop(void) {
case TransitionAnimation::Right:
OLED::transitionSecondaryFramebuffer(true, context.viewEnterTime);
break;
case TransitionAnimation::Up:
OLED::transitionScrollUp(context.viewEnterTime);
case TransitionAnimation::None:
default:
break; // Do nothing on unknown

View File

@@ -88,7 +88,7 @@ OperatingMode showDebugMenu(const ButtonState buttons, guiContext *cxt) {
}
if (buttons == BUTTON_B_SHORT) {
cxt->transitionMode = TransitionAnimation::Up;
cxt->transitionMode = TransitionAnimation::Down;
return OperatingMode::InitialisationDone;
} else if (buttons == BUTTON_F_SHORT) {
cxt->scratch_state.state1++;

View File

@@ -34,7 +34,7 @@ OperatingMode handleHomeButtons(const ButtonState buttons, guiContext *cxt) {
break;
case BUTTON_B_LONG:
cxt->transitionMode = TransitionAnimation::Down;
cxt->transitionMode = TransitionAnimation::Up;
return OperatingMode::DebugMenuReadout;
break;
case BUTTON_F_LONG: