diff options
author | 2016-09-19 13:26:18 +0200 | |
---|---|---|
committer | 2016-09-19 13:26:18 +0200 | |
commit | 21b6e4c1f3225fed55926a4e6be2888d17fe5fd2 (patch) | |
tree | 63504b528703a65c4addda6658a701e405bba44c /quantum/process_keycode/process_tap_dance.c | |
parent | 94af0194ddfe8f8a3069c926170d8995de5c1781 (diff) | |
parent | c438a2a265b366c8e4594ce561feb896018983f0 (diff) | |
download | qmk_firmware-21b6e4c1f3225fed55926a4e6be2888d17fe5fd2.tar.gz |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.c')
-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 07de3ecb8..79ade4d00 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; |