diff options
author | Ramon Imbao <ramonimbao@gmail.com> | 2021-12-09 20:17:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 12:17:24 +0000 |
commit | d0571c3da7c83c1fc802ae64c38007486a3df1b0 (patch) | |
tree | c68ee269121d9b6f1b2f3cddccedfb2796c76b09 /keyboards/ramonimbao/chevron | |
parent | 4ab9fac6a6e0e10f81592b5f4cae398ee54587e2 (diff) |
Add wait_ms to encoder_update_user (#15436)
Diffstat (limited to 'keyboards/ramonimbao/chevron')
-rw-r--r-- | keyboards/ramonimbao/chevron/keymaps/via/keymap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/ramonimbao/chevron/keymaps/via/keymap.c b/keyboards/ramonimbao/chevron/keymaps/via/keymap.c index d34b06a999..190a39e257 100644 --- a/keyboards/ramonimbao/chevron/keymaps/via/keymap.c +++ b/keyboards/ramonimbao/chevron/keymaps/via/keymap.c @@ -75,10 +75,12 @@ bool encoder_update_user(uint8_t index, bool clockwise) { encoder_cw.pressed = true; encoder_cw.time = (timer_read() | 1); action_exec(encoder_cw); + wait_ms(20); } else { encoder_ccw.pressed = true; encoder_ccw.time = (timer_read() | 1); action_exec(encoder_ccw); + wait_ms(20); } return true; } |