summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buttons.cpp')
-rw-r--r--buttons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/buttons.cpp b/buttons.cpp
index 23c5ab1..df947db 100644
--- a/buttons.cpp
+++ b/buttons.cpp
@@ -16,7 +16,7 @@ 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_id != 0)) // Home app
+ if (gpio == BUTTON_HOME && (g_s.current_app->app_get_attributes().id != 0)) // Home app
app_switch_request(0);
else
app_btnpressed(g_s.current_app, gpio, delta_since_press);