summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/button-1g-3g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/button-1g-3g.c')
-rw-r--r--firmware/target/arm/ipod/button-1g-3g.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/button-1g-3g.c b/firmware/target/arm/ipod/button-1g-3g.c
index 044e887453..9eec8fd823 100644
--- a/firmware/target/arm/ipod/button-1g-3g.c
+++ b/firmware/target/arm/ipod/button-1g-3g.c
@@ -151,6 +151,9 @@ static void handle_scroll_wheel(int new_scroll, int was_hold)
if (v < WHEEL_SMOOTHING_VELOCITY) {
/* very slow - no smoothing */
wheel_velocity = v;
+ /* ensure backlight never gets stuck for an extended period if tick
+ * wrapped such that next poke is very far ahead */
+ next_backlight_on = current_tick - 1;
}
else {
/* some velocity filtering to smooth things out */