From b8223d908bb96486f4e49463cc906246f4cdb7cd Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Fri, 28 Oct 2011 17:23:40 +0000 Subject: Fix FS#12351: The poweroff timer was not reset on scroll wheel activity for e200 and simulator. Thanks to Nick Peskett. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30847 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/sdl/button-sdl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/target/hosted/sdl/button-sdl.c') 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 @@ #include "sim_tasks.h" #include "buttonmap.h" #include "debug.h" +#include "powermgmt.h" #ifdef HAVE_TOUCHSCREEN #include "touchscreen.h" @@ -418,6 +419,7 @@ static void button_event(int key, bool pressed) #ifdef HAVE_BUTTON_LIGHT buttonlight_on(); #endif + reset_poweroff_timer(); queue_post(&button_queue, new_btn, 1<<24); new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK); } -- cgit v1.2.3