Fix jog back on djcontrol instinct

master
nixo 2020-07-25 21:30:17 +02:00
parent b6068a73c0
commit e00ab5e45b
1 changed files with 2 additions and 2 deletions

View File

@ -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++;
}
}
}