summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-05-10 16:06:12 -0700
committerGitHub <noreply@github.com>2023-05-11 00:06:12 +0100
commitaec882528acc9d8fcc9a379bd924717ccd8c453e (patch)
tree114aed9aff7c8173576618b7932922da5770fba8
parent81f66c177dc4c00ba34fa50d3045802b87fceadd (diff)
[Bug] Fix compilation error introduced by #20669 (#20849)
-rw-r--r--quantum/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/action.c b/quantum/action.c
index 41c204f689..a683ff1130 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -200,7 +200,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);