aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_tap_dance.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.c')
-rw-r--r--quantum/process_keycode/process_tap_dance.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 0c7b6353e..138de0eba 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -14,7 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "quantum.h" 16#include "quantum.h"
17#include "action_tapping.h"
18 17
19#ifndef NO_ACTION_ONESHOT 18#ifndef NO_ACTION_ONESHOT
20uint8_t get_oneshot_mods(void); 19uint8_t get_oneshot_mods(void);
@@ -167,7 +166,11 @@ void matrix_scan_tap_dance() {
167 if (action->custom_tapping_term > 0) { 166 if (action->custom_tapping_term > 0) {
168 tap_user_defined = action->custom_tapping_term; 167 tap_user_defined = action->custom_tapping_term;
169 } else { 168 } else {
169#ifdef TAPPING_TERM_PER_KEY
170 tap_user_defined = get_tapping_term(action->state.keycode, NULL); 170 tap_user_defined = get_tapping_term(action->state.keycode, NULL);
171#else
172 tap_user_defined = TAPPING_TERM;
173#endif
171 } 174 }
172 if (action->state.count && timer_elapsed(action->state.timer) > tap_user_defined) { 175 if (action->state.count && timer_elapsed(action->state.timer) > tap_user_defined) {
173 process_tap_dance_action_on_dance_finished(action); 176 process_tap_dance_action_on_dance_finished(action);