diff options
| author | tmk <nobody@nowhere> | 2012-10-16 11:20:49 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-10-17 15:55:37 +0900 |
| commit | e451c059296a4c9af7a476577fee64afb9965bca (patch) | |
| tree | 2009c5193d43a47fa9f6973e46004cba583b57ba /common/mousekey.c | |
| parent | f7a445e537243f886d9cb022bede18859c9bfd12 (diff) | |
| download | qmk_firmware-e451c059296a4c9af7a476577fee64afb9965bca.tar.gz qmk_firmware-e451c059296a4c9af7a476577fee64afb9965bca.zip | |
Fix commands
Diffstat (limited to 'common/mousekey.c')
| -rw-r--r-- | common/mousekey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mousekey.c b/common/mousekey.c index 353890a16..99e6d34ff 100644 --- a/common/mousekey.c +++ b/common/mousekey.c | |||
| @@ -103,7 +103,7 @@ static uint8_t wheel_unit(void) | |||
| 103 | if (mousekey_repeat > mk_time_to_max) { | 103 | if (mousekey_repeat > mk_time_to_max) { |
| 104 | unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; | 104 | unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; |
| 105 | } else { | 105 | } else { |
| 106 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_time_to_max; | 106 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max; |
| 107 | } | 107 | } |
| 108 | if (unit == 0) return 1; | 108 | if (unit == 0) return 1; |
| 109 | return (unit > MOUSEKEY_WHEEL_MAX ? MOUSEKEY_WHEEL_MAX : unit); | 109 | return (unit > MOUSEKEY_WHEEL_MAX ? MOUSEKEY_WHEEL_MAX : unit); |
