mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
e126153687
commit
b8223d908b
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue