diff options
author | ConfuSomu | 2021-03-01 15:13:17 -0500 |
---|---|---|
committer | ConfuSomu | 2021-03-01 15:13:17 -0500 |
commit | 03c6be69d3ba5ef7070cf857063d2bcfe12d9a3b (patch) | |
tree | 020e91b6427ee5c9c149b4478c48ee52ba834c95 /pico-watch.cpp | |
parent | 2e0650864058f3fb312d2527398fda8d7e97a60d (diff) | |
download | pico-watch-03c6be69d3ba5ef7070cf857063d2bcfe12d9a3b.tar pico-watch-03c6be69d3ba5ef7070cf857063d2bcfe12d9a3b.tar.gz pico-watch-03c6be69d3ba5ef7070cf857063d2bcfe12d9a3b.zip |
Wait for button press then hide popup
Diffstat (limited to 'pico-watch.cpp')
-rw-r--r-- | pico-watch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pico-watch.cpp b/pico-watch.cpp index ebc3f12..7c59d98 100644 --- a/pico-watch.cpp +++ b/pico-watch.cpp @@ -36,7 +36,9 @@ int app_render(int app_id) { } int app_btnpressed(int app_id, uint gpio) { - return (*APPS_FUNC_BTNPRESS[app_id])(&app_api, gpio); + if (app_api.m_send_button_press_to_app) + return (*APPS_FUNC_BTNPRESS[app_id])(&app_api, gpio); + return 2; } int app_destroy(int app_id) { |