From a9905232c61c2d4bfd57241ae56d248290c9e1d7 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sun, 12 Jun 2022 15:54:54 +0200 Subject: [PATCH] Fix push/pop --- main/displays/lockscreen.cpp | 2 +- main/main.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/displays/lockscreen.cpp b/main/displays/lockscreen.cpp index ae620c5..a1d51d5 100644 --- a/main/displays/lockscreen.cpp +++ b/main/displays/lockscreen.cpp @@ -121,7 +121,7 @@ LOCKSCREEN_PLUGIN_FIXES_1 if (!gas || !brems || *gas > 200.f || *brems > 200.f) espgui::switchScreen(true); else - espgui::switchScreen(); + espgui::popScreen(); #ifdef LOCKSCREEN_PLUGIN_FIXES_2 LOCKSCREEN_PLUGIN_FIXES_2 #endif diff --git a/main/main.cpp b/main/main.cpp index 42bc4c1..6c41092 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -93,7 +93,8 @@ extern "C" void app_main() } else if (configs.lockscreen.keepLockedAfterReboot.value() && configs.lockscreen.locked.value()) { - espgui::switchScreen(); + espgui::switchScreen(); + espgui::pushScreen(); } else {