Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Tap dance does not use the tapping term from get_tapping_term #9802

Closed
3 tasks
Merlin04 opened this issue Jul 24, 2020 · 2 comments
Closed
3 tasks

[Bug] Tap dance does not use the tapping term from get_tapping_term #9802

Merlin04 opened this issue Jul 24, 2020 · 2 comments

Comments

@Merlin04
Copy link
Contributor

Describe the Bug

Tap dance does not use the tapping term from the get_tapping_term method; it can only use either the value passed to it (if you are using ACTION_TAP_DANCE_FN_ADVANCED_TIME) or the defined TAPPING_TERM.

System Information

  • Keyboard: Gergoplex Heavy
    • Revision (if applicable):
  • Operating system: Ubuntu Budgie 20.04
  • AVR GCC version: 5.4.0
  • ARM GCC version: 9.2.1
  • QMK Firmware version: 0.6.212 (I'm using Germ's fork which has support for combos and the gergoplex, the version number doesn't seem right but I think the fork was from 3 months ago)
  • Any keyboard related software installed?
    • AutoHotKey
    • Karabiner
    • Other:

Additional Context

@Merlin04
Copy link
Contributor Author

Merlin04 commented Jul 24, 2020

The source of this appears to be in the function matrix_scan_tap_dance in process_tap_dance.c:

void matrix_scan_tap_dance() {
    if (highest_td == -1) return;
    uint16_t tap_user_defined;

    for (uint8_t i = 0; i <= highest_td; i++) {
        qk_tap_dance_action_t *action = &tap_dance_actions[i];
        if (action->custom_tapping_term > 0) {
            tap_user_defined = action->custom_tapping_term;
        } else {
            tap_user_defined = TAPPING_TERM;
        }
        if (action->state.count && timer_elapsed(action->state.timer) > tap_user_defined) {
            process_tap_dance_action_on_dance_finished(action);
            reset_tap_dance(&action->state);
        }
    }
}

@drashna
Copy link
Member

drashna commented Jul 31, 2020

This is fixed in #6259

@drashna drashna closed this as completed Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants