Fixes for some animations not running

Dont bail on animations if keypress is still held
This commit is contained in:
Ben V. Brown
2023-07-22 17:01:28 +10:00
parent bf00e1bc58
commit 86fed6bfbe
4 changed files with 58 additions and 55 deletions

View File

@@ -116,8 +116,10 @@ OperatingMode guiHandleDraw(void) {
newMode = handle_post_init_state();
break;
case OperatingMode::Hibernating:
newMode = OperatingMode::HomeScreen;
break;
case OperatingMode::ThermalRunaway:
newMode = OperatingMode::HomeScreen;
break;
};
return newMode;
@@ -142,13 +144,13 @@ void guiRenderLoop(void) {
// Now dispatch the transition
switch (context.transitionMode) {
case TransitionAnimation::Down:
OLED::transitionScrollDown();
OLED::transitionScrollDown(context.viewEnterTime);
break;
case TransitionAnimation::Left:
OLED::transitionSecondaryFramebuffer(false);
OLED::transitionSecondaryFramebuffer(false, context.viewEnterTime);
break;
case TransitionAnimation::Right:
OLED::transitionSecondaryFramebuffer(true);
OLED::transitionSecondaryFramebuffer(true, context.viewEnterTime);
break;
case TransitionAnimation::None:
default: