mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Add wait_ms to encoder_update_user (#15436)
This commit is contained in:
parent
4ab9fac6a6
commit
d0571c3da7
|
@ -75,10 +75,12 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
encoder_cw.pressed = true;
|
encoder_cw.pressed = true;
|
||||||
encoder_cw.time = (timer_read() | 1);
|
encoder_cw.time = (timer_read() | 1);
|
||||||
action_exec(encoder_cw);
|
action_exec(encoder_cw);
|
||||||
|
wait_ms(20);
|
||||||
} else {
|
} else {
|
||||||
encoder_ccw.pressed = true;
|
encoder_ccw.pressed = true;
|
||||||
encoder_ccw.time = (timer_read() | 1);
|
encoder_ccw.time = (timer_read() | 1);
|
||||||
action_exec(encoder_ccw);
|
action_exec(encoder_ccw);
|
||||||
|
wait_ms(20);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue