diff options
author | precondition <57645186+precondition@users.noreply.github.com> | 2022-02-11 20:53:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 19:53:26 +0000 |
commit | 7148a69d5ea7d75119c81cf9b7c579f3136c4fd3 (patch) | |
tree | 4a7172b6e068ff7f162ee311b0d64583dbb0a4c7 /quantum/process_keycode | |
parent | 39bec3bfa5ff63ee99f0fd15293967fd8655a154 (diff) | |
download | qmk_firmware-7148a69d5ea7d75119c81cf9b7c579f3136c4fd3.tar.gz qmk_firmware-7148a69d5ea7d75119c81cf9b7c579f3136c4fd3.zip |
Pass in the keyrecord_t of the dual-role/tapping key when calling per-key tap hold functions (#15938)
* Replace keyp by &tapping_key in the record arg of per-key tap hold funcs
* Replace NULL by &(keyrecord_t){} in 2nd arg of get_tapping_term
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index c707fdea30..035c9c265d 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -173,7 +173,7 @@ void tap_dance_task() { tap_user_defined = action->custom_tapping_term; } else { #ifdef TAPPING_TERM_PER_KEY - tap_user_defined = get_tapping_term(action->state.keycode, NULL); + tap_user_defined = get_tapping_term(action->state.keycode, &(keyrecord_t){}); #else tap_user_defined = TAPPING_TERM; #endif |