From d17ea22b8b7c3013138569a65c1f32e4d7e699f3 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 10 May 2023 16:06:12 -0700 Subject: [PATCH] [Bug] Fix compilation error introduced by #20669 (#20849) --- quantum/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/action.c b/quantum/action.c index 4094b43dc7c1..61774282449b 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -204,7 +204,7 @@ void process_hand_swap(keyevent_t *event) { } } # ifdef ENCODER_MAP_ENABLE - else if (IS_ENCODEREVENT(*event) && pos.row == KEYLOC_ENCODER_CW || pos.row == KEYLOC_ENCODER_CCW) { + else if (IS_ENCODEREVENT(*event) && (pos.row == KEYLOC_ENCODER_CW || pos.row == KEYLOC_ENCODER_CCW)) { static uint8_t encoder_swap_state[((NUM_ENCODERS) + (CHAR_BIT)-1) / (CHAR_BIT)]; size_t index = pos.col; bool do_swap = should_swap_hands(index, encoder_swap_state, event->pressed);