mirror of
https://github.com/correl/m5paper.git
synced 2024-12-28 19:19:17 +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) {
|
void switch_app(App::Choices next) {
|
||||||
app->shutdown();
|
app->shutdown();
|
||||||
delete app;
|
delete app;
|
||||||
|
M5.update();
|
||||||
switch (next) {
|
switch (next) {
|
||||||
case App::Clock:
|
case App::Clock:
|
||||||
app = new Clock;
|
app = new Clock;
|
||||||
|
|
Loading…
Reference in a new issue