mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-29 04:06:59 +06:00
Mask off TD() parameter properly (#6143)
* Mask off TD() parameter properly * More parentheses
This commit is contained in:
parent
405dea01be
commit
406f03bb0c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user