From d0571c3da7c83c1fc802ae64c38007486a3df1b0 Mon Sep 17 00:00:00 2001 From: Ramon Imbao Date: Thu, 9 Dec 2021 20:17:24 +0800 Subject: Add wait_ms to encoder_update_user (#15436) --- keyboards/ramonimbao/chevron/keymaps/via/keymap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keyboards/ramonimbao/chevron/keymaps/via') 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; } -- cgit v1.2.3