summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/ipod/button-clickwheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c
index 9a2f38bc88..4c0bdbc813 100644
--- a/firmware/target/arm/ipod/button-clickwheel.c
+++ b/firmware/target/arm/ipod/button-clickwheel.c
@@ -185,7 +185,7 @@ static inline int ipod_4g_button_read(void)
v = (v<0) ? -v : v; /* undo signedness */
/* some velocity filtering to smooth things out */
- wheel_velocity = (31 * wheel_velocity + v) / 32;
+ wheel_velocity = (15 * wheel_velocity + v) / 16;
/* limit to 24 bit */
wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity;