summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/mouse
diff options
context:
space:
mode:
authorsbuller <stefan.buller@gmail.com>2021-03-24 20:33:06 -0500
committerGitHub <noreply@github.com>2021-03-24 18:33:06 -0700
commit97a73637e0c04091b793c0e555d1a36e8be24091 (patch)
tree0d03d9f050fea81d9e36fa2e0686b13d8fc8cd6b /keyboards/ploopyco/mouse
parent653ecf91c23e1e1f4827648007905e6d5ac56196 (diff)
[Keyboard] Preserve signedness from opt_encoder_handler for scroll data on ploopy devices (#12223)
Diffstat (limited to 'keyboards/ploopyco/mouse')
-rw-r--r--keyboards/ploopyco/mouse/mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ploopyco/mouse/mouse.c b/keyboards/ploopyco/mouse/mouse.c
index 1a1e5648b2..1eb5e3ead9 100644
--- a/keyboards/ploopyco/mouse/mouse.c
+++ b/keyboards/ploopyco/mouse/mouse.c
@@ -96,7 +96,7 @@ __attribute__((weak)) void process_wheel(report_mouse_t* mouse_report) {
uint16_t p2 = adc_read(OPT_ENC2_MUX);
if (debug_encoder) dprintf("OPT1: %d, OPT2: %d\n", p1, p2);
- uint8_t dir = opt_encoder_handler(p1, p2);
+ int dir = opt_encoder_handler(p1, p2);
if (dir == 0) return;
process_wheel_user(mouse_report, mouse_report->h, (int)(mouse_report->v + (dir * OPT_SCALE)));