diff options
author | fauxpark <fauxpark@gmail.com> | 2019-08-09 07:15:34 +1000 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-08-13 10:51:08 +0900 |
commit | ce6f1458029445e148df9b299a3cc0d76f1dcf9d (patch) | |
tree | 1498ddf59bf96e84cb67e84541c101beddfc0fb2 | |
parent | b6e465be968dfa61540889bb05a22a2077676113 (diff) |
Mask off TD() parameter properly (#6143)
* Mask off TD() parameter properly
* More parentheses
-rw-r--r-- | quantum/process_keycode/process_tap_dance.h | 2 |
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 ca12f4746e..00d70cbc59 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); |