]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Fix mousekey parameter bug
authortmk <nobody@nowhere>
Sun, 21 Oct 2012 11:12:11 +0000 (20:12 +0900)
committertmk <nobody@nowhere>
Sun, 21 Oct 2012 11:12:11 +0000 (20:12 +0900)
common/mousekey.c

index b8af3e59c7668a8611a66b4aeb2d7e7e695d9abb..d26b26306f04c8f60216591632918f503f0451f2 100644 (file)
@@ -86,7 +86,7 @@ static uint8_t wheel_unit(void)
         unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed);
     } else if (mousekey_repeat == 0) {
         unit = MOUSEKEY_WHEEL_DELTA;
-    } else if (mousekey_repeat >= mk_time_to_max) {
+    } else if (mousekey_repeat >= mk_wheel_time_to_max) {
         unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed;
     } else {
         unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max;