Browse Source

Add wait_ms to encoder_update_user (#15436)

pull/15437/head
Ramon Imbao 2 years ago
committed by GitHub
parent
commit
d0571c3da7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      keyboards/ramonimbao/chevron/keymaps/via/keymap.c

+ 2
- 0
keyboards/ramonimbao/chevron/keymaps/via/keymap.c View File

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

Loading…
Cancel
Save