summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buttons.cpp')
-rw-r--r--buttons.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/buttons.cpp b/buttons.cpp
index 79202c8..a4eacab 100644
--- a/buttons.cpp
+++ b/buttons.cpp
@@ -16,10 +16,10 @@ void gpio_interrupt_cb(uint gpio, uint32_t events) {
if (delta_since_press > g_s.button_delay_time) {
if (app_api.m_interpret_button_press) {
- if (gpio == BUTTON_HOME && (g_s.current_app->app_get_attributes().id != 0)) // Home app
+ if (gpio == BUTTON_HOME && (g_s.foreground_app->app_get_attributes().id != 0)) // Home app
app_mgr::app_switch_request(0);
else
- app_mgr::app_btnpressed(g_s.current_app, gpio, delta_since_press);
+ app_mgr::app_btnpressed(g_s.foreground_app, gpio, delta_since_press);
}
app_api.button_last_set(gpio);