diff options
author | Drashna Jaelre <drashna@live.com> | 2021-07-26 17:59:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 17:59:49 -0700 |
commit | eb46c954dcf99d842967cc6095827316ffddd291 (patch) | |
tree | 69f0a5ade629b63731c246888c0e067312e0970f /users/drashna/tap_dances.c | |
parent | 368efb5d2b834d995ba24cd23349327bab02918b (diff) |
[Keymap] Drashna's Defaults cleanup (#13722)
Diffstat (limited to 'users/drashna/tap_dances.c')
-rw-r--r-- | users/drashna/tap_dances.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/users/drashna/tap_dances.c b/users/drashna/tap_dances.c index 6b27afc5ae..01873489d8 100644 --- a/users/drashna/tap_dances.c +++ b/users/drashna/tap_dances.c @@ -26,7 +26,7 @@ uint8_t diablo_times[] = {0, 1, 3, 5, 10, 30}; // Cycle through the times for the macro, starting at 0, for disabled. void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { - diable_keys_t *diablo_keys = (diable_keys_t *)user_data; + diable_keys_t *diablo_keys = (diable_keys_t *)user_data; // Sets the keycode based on the index diablo_timer[diablo_keys->index].keycode = diablo_keys->keycode; @@ -34,7 +34,7 @@ void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { if (state->count >= (sizeof(diablo_times) / sizeof(uint8_t))) { diablo_timer[diablo_keys->index].key_interval = 0; reset_tap_dance(state); - } else { // else set the interval (tapdance count starts at 1, array starts at 0, so offset by one) + } else { // else set the interval (tapdance count starts at 1, array starts at 0, so offset by one) diablo_timer[diablo_keys->index].key_interval = diablo_times[state->count - 1]; } } @@ -64,7 +64,9 @@ void run_diablo_macro_check(void) { // reset the timer, since enough time has passed diablo_timer[index].timer = timer_read(); // send keycode ONLY if we're on the diablo layer. - if (IS_LAYER_ON(_DIABLO)) { tap_code(diablo_timer[index].keycode); } + if (IS_LAYER_ON(_DIABLO)) { + tap_code(diablo_timer[index].keycode); + } } } } |