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:
Andree Buschmann 2011-10-28 17:23:40 +00:00
parent e126153687
commit b8223d908b
2 changed files with 4 additions and 0 deletions

View file

@ -23,6 +23,7 @@
#include "button.h"
#include "kernel.h"
#include "backlight.h"
#include "powermgmt.h"
void scrollwheel(unsigned int wheel_value)
{
@ -108,6 +109,7 @@ void scrollwheel(unsigned int wheel_value)
{
buttonlight_on();
backlight_on();
reset_poweroff_timer();
queue_post(&button_queue, btn, ((wheel_delta+1)<<24));
/* message posted - reset count and remember post */
counter = 0;