diff options
author | IBNobody <ibnobody@gmail.com> | 2016-09-06 14:57:12 -0500 |
---|---|---|
committer | IBNobody <ibnobody@gmail.com> | 2016-09-06 14:57:12 -0500 |
commit | ff53e167670cc760ba0110e632607766dd324412 (patch) | |
tree | c10cd73d05201238588e1538c0a5b5f80fda8e69 /quantum | |
parent | f16fece28330b65253047259a79670289b2bafd5 (diff) | |
parent | 8b0769fe5a615e0ed534187de79d09d668737313 (diff) |
Merge remote-tracking branch 'refs/remotes/jackhumbert/master'
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 07de3ecb8f..79ade4d000 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -65,9 +65,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { highest_td = idx; action = &tap_dance_actions[idx]; - action->state.keycode = keycode; action->state.pressed = record->event.pressed; if (record->event.pressed) { + action->state.keycode = keycode; action->state.count++; action->state.timer = timer_read(); @@ -77,8 +77,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { process_tap_dance_action_on_dance_finished (paction); reset_tap_dance (&paction->state); } + + last_td = keycode; } - last_td = keycode; break; |