aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_tap_dance.h
diff options
context:
space:
mode:
authorGravatar fauxpark <fauxpark@gmail.com>2019-08-09 07:15:34 +1000
committerGravatar Drashna Jaelre <drashna@live.com>2019-08-08 14:15:34 -0700
commit406f03bb0ceeaf7fda7d04da2379c1f197b5cc6d (patch)
tree4b7431e37ebf418efe9c8a50af6486ebd1fc7bf6 /quantum/process_keycode/process_tap_dance.h
parent405dea01bef215a0b79524e4ff74364f1bcfeadf (diff)
downloadqmk_firmware-406f03bb0ceeaf7fda7d04da2379c1f197b5cc6d.tar.gz
Mask off TD() parameter properly (#6143)
* Mask off TD() parameter properly * More parentheses
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.h')
-rw-r--r--quantum/process_keycode/process_tap_dance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h
index ca12f4746..00d70cbc5 100644
--- a/quantum/process_keycode/process_tap_dance.h
+++ b/quantum/process_keycode/process_tap_dance.h
@@ -34,7 +34,7 @@ typedef struct
bool finished;
} qk_tap_dance_state_t;
-#define TD(n) (QK_TAP_DANCE + n)
+#define TD(n) (QK_TAP_DANCE | ((n) & 0xFF))
typedef void (*qk_tap_dance_user_fn_t) (qk_tap_dance_state_t *state, void *user_data);