summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
185 v = (v<0) ? -v : v; /* undo signedness */ 185 v = (v<0) ? -v : v; /* undo signedness */
186 186
187 /* some velocity filtering to smooth things out */ 187 /* some velocity filtering to smooth things out */
188 wheel_velocity = (31 * wheel_velocity + v) / 32; 188 wheel_velocity = (15 * wheel_velocity + v) / 16;
189 /* limit to 24 bit */ 189 /* limit to 24 bit */
190 wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity; 190 wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity;
191 191