diff options
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) { |