From: tmk Date: Sun, 21 Oct 2012 11:12:11 +0000 (+0900) Subject: Fix mousekey parameter bug X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=454f7bc71657020d0574e849dad92a14e71230c4;p=max%2Ftmk_keyboard.git Fix mousekey parameter bug --- diff --git a/common/mousekey.c b/common/mousekey.c index b8af3e59..d26b2630 100644 --- a/common/mousekey.c +++ b/common/mousekey.c @@ -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;