From 2e538acca413e1f148894ad1eabcc915a656d04a Mon Sep 17 00:00:00 2001 From: Correl Date: Sat, 28 Jan 2023 22:57:23 -0500 Subject: [PATCH] Update M5 state before initializing new app Ensures button presses are cleared before loading a new interface. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index cd2fddb..a78b29a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,6 +225,7 @@ void setup(void) { void switch_app(App::Choices next) { app->shutdown(); delete app; + M5.update(); switch (next) { case App::Clock: app = new Clock;