mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
Kick the idle poweroff timer on wheel activity. Should fix FS #7786
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14747 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
804aada500
commit
137ce71709
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "button.h"
|
#include "button.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
|
#include "powermgmt.h"
|
||||||
|
|
||||||
#define WHEEL_REPEAT_INTERVAL 300000
|
#define WHEEL_REPEAT_INTERVAL 300000
|
||||||
#define WHEEL_FAST_ON_INTERVAL 20000
|
#define WHEEL_FAST_ON_INTERVAL 20000
|
||||||
|
|
@ -196,6 +197,7 @@ void clickwheel_int(void)
|
||||||
next_backlight_on = current_tick + HZ/4;
|
next_backlight_on = current_tick + HZ/4;
|
||||||
backlight_on();
|
backlight_on();
|
||||||
button_backlight_on();
|
button_backlight_on();
|
||||||
|
reset_poweroff_timer();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (btn != BUTTON_NONE)
|
if (btn != BUTTON_NONE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue