From b9e9fd057a77adef481362274afcde46fc6ac46b Mon Sep 17 00:00:00 2001 From: Stephen Ostermiller Date: Mon, 30 Jun 2025 16:35:48 -0400 Subject: [PATCH] format --- quantum/process_keycode/process_tap_dance.c | 8 ++++---- quantum/process_keycode/process_tap_dance.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index a3eef3a1641..efca3837629 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -43,9 +43,9 @@ tap_dance_state_t *tap_dance_get_state(uint8_t tap_dance_idx) { // Search for the first available state for (i = 0; i < TAP_DANCE_MAX_SIMULTANEOUS; i++) { if (!tap_dance_states[i].in_use) { - tap_dance_states[i].tap_dance_idx = tap_dance_idx; - tap_dance_states[i].state_idx = i; - tap_dance_states[i].in_use = true; + tap_dance_states[i].tap_dance_idx = tap_dance_idx; + tap_dance_states[i].state_idx = i; + tap_dance_states[i].in_use = true; return &tap_dance_states[i]; } } @@ -233,7 +233,7 @@ void tap_dance_task(void) { if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return; memcpy_P(&action, tap_dance_get(QK_TAP_DANCE_GET_INDEX(active_td)), sizeof(tap_dance_action_t)); - state = tap_dance_get_state(QK_TAP_DANCE_GET_INDEX(active_td)); + state = tap_dance_get_state(QK_TAP_DANCE_GET_INDEX(active_td)); if (state != NULL && !state->interrupted) { process_tap_dance_action_on_dance_finished(&action, state); } diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h index e0417a4617d..05f7b78c847 100644 --- a/quantum/process_keycode/process_tap_dance.h +++ b/quantum/process_keycode/process_tap_dance.h @@ -67,10 +67,10 @@ typedef struct { { .fn = {tap_dance_pair_on_each_tap, tap_dance_pair_finished, tap_dance_pair_reset, NULL}, .user_data = (void *)&(pair), } #define DUAL_ROLE_TAP_DANCE_LAYER_MOVE(kc, layer) \ - {kc, layer, layer_move} + { kc, layer, layer_move } #define DUAL_ROLE_TAP_DANCE_LAYER_TOGGLE(kc, layer) \ - {kc, layer, layer_invert} + { kc, layer, layer_invert } #define ACTION_TAP_DANCE_DUAL_ROLE(dual_role) \ { .fn = {tap_dance_dual_role_on_each_tap, tap_dance_dual_role_finished, tap_dance_dual_role_reset, NULL}, .user_data = (void *)&(dual_role), }