Skip to content

Commit

Permalink
Add wait_ms to encoder_update_user (#15436)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonimbao authored Dec 9, 2021
1 parent 4ab9fac commit d0571c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyboards/ramonimbao/chevron/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d0571c3

Please sign in to comment.