diff options
| author | Ilya Zhuravlev <whatever@xyz.is> | 2021-07-08 23:02:17 -0400 |
|---|---|---|
| committer | Ilya Zhuravlev <whatever@xyz.is> | 2021-07-17 23:46:11 -0400 |
| commit | fa26d6e1bc2343fe39cbcea0e27554db93966852 (patch) | |
| tree | a78248bc37d07e68f2d2f9be2259fe3b1c12c616 /quantum/vial.c | |
| parent | a28433681946abaaca2c83878fed0f03a2aba07d (diff) | |
qmk_settings: wrap TAP_CODE_DELAY and TAP_HOLD_CAPS_DELAY
Diffstat (limited to 'quantum/vial.c')
| -rw-r--r-- | quantum/vial.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/quantum/vial.c b/quantum/vial.c index c7afe3fa07..b67aaa9f21 100644 --- a/quantum/vial.c +++ b/quantum/vial.c @@ -286,11 +286,7 @@ static void vial_keycode_tap(uint16_t keycode) __attribute__((unused)); static void vial_keycode_tap(uint16_t keycode) { vial_keycode_down(keycode); - -#if TAP_CODE_DELAY > 0 - wait_ms(TAP_CODE_DELAY); -#endif - + wait_ms(QS_tap_code_delay); vial_keycode_up(keycode); } @@ -429,6 +425,7 @@ static void on_dance_reset(qk_tap_dance_state_t *state, void *user_data) { uint8_t index = (uintptr_t)user_data; if (dynamic_keymap_get_tap_dance(index, &td_entry) != 0) return; + wait_ms(QS_tap_code_delay); uint8_t st = dance_state[index]; state->count = 0; dance_state[index] = 0; |
