From e00ab5e45b8439e804bf2ad75e1af043d02c6d35 Mon Sep 17 00:00:00 2001 From: nixo Date: Sat, 25 Jul 2020 21:30:17 +0200 Subject: [PATCH] Fix jog back on djcontrol instinct --- midizap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midizap.c b/midizap.c index a373105..2594c5d 100644 --- a/midizap.c +++ b/midizap.c @@ -1428,10 +1428,10 @@ handle_event(uint8_t *msg, uint8_t portno, int depth, int recursive) } else if (msg[2] > 64) { int step = get_cc_step(tr, portno, chan, msg[1], -1); if (step) { - int d = (msg[2]-64)/step; + uint8_t d = (msg[2]-128)/step; while (d) { send_strokes(tr, portno, status, chan, msg[1], 0, 0, -1, depth); - d--; + d++; } } }