summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 3d6a3797cf..ca1f2e5eb1 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -33,6 +33,7 @@
33#include "sim_tasks.h" 33#include "sim_tasks.h"
34#include "buttonmap.h" 34#include "buttonmap.h"
35#include "debug.h" 35#include "debug.h"
36#include "powermgmt.h"
36 37
37#ifdef HAVE_TOUCHSCREEN 38#ifdef HAVE_TOUCHSCREEN
38#include "touchscreen.h" 39#include "touchscreen.h"
@@ -418,6 +419,7 @@ static void button_event(int key, bool pressed)
418#ifdef HAVE_BUTTON_LIGHT 419#ifdef HAVE_BUTTON_LIGHT
419 buttonlight_on(); 420 buttonlight_on();
420#endif 421#endif
422 reset_poweroff_timer();
421 queue_post(&button_queue, new_btn, 1<<24); 423 queue_post(&button_queue, new_btn, 1<<24);
422 new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK); 424 new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK);
423 } 425 }