mirror of
https://github.com/correl/m5paper.git
synced 2024-12-27 11:07:28 +00:00
Update M5 state before initializing new app
Ensures button presses are cleared before loading a new interface.
This commit is contained in:
parent
2afceed781
commit
2e538acca4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue