1
0
Fork 0

Mask off TD() parameter properly (#6143)

* Mask off TD() parameter properly

* More parentheses
This commit is contained in:
fauxpark 2019-08-09 07:15:34 +10:00 committed by Drashna Jaelre
parent 405dea01be
commit 406f03bb0c

View file

@ -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);