summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/trackball_mini
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-08-13 18:02:19 +0000
committerQMK Bot <hello@qmk.fm>2022-08-13 18:02:19 +0000
commit826ab5412f7ba103f3e3c2416750a55bbac3fe80 (patch)
treea5ccc38153d9ddae04a5dfcb25d2f93d805160d5 /keyboards/ploopyco/trackball_mini
parent96731ba88e84e0cdd8144e6009fb086a9ccce743 (diff)
parentb1fe7621ebb086a519778030381eb5729e949523 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/ploopyco/trackball_mini')
-rw-r--r--keyboards/ploopyco/trackball_mini/trackball_mini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/ploopyco/trackball_mini/trackball_mini.c b/keyboards/ploopyco/trackball_mini/trackball_mini.c
index 03cba2200e..df13912af4 100644
--- a/keyboards/ploopyco/trackball_mini/trackball_mini.c
+++ b/keyboards/ploopyco/trackball_mini/trackball_mini.c
@@ -111,10 +111,10 @@ void process_wheel(void) {
if (debug_encoder) dprintf("OPT1: %d, OPT2: %d\n", p1, p2);
- uint8_t dir = opt_encoder_handler(p1, p2);
+ int8_t dir = opt_encoder_handler(p1, p2);
if (dir == 0) return;
- encoder_update_kb(0, dir == 1);
+ encoder_update_kb(0, dir > 0);
}
void pointing_device_init_kb(void) {