]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix tapdance when one-shot is disabled.
authorJoe Wasson <joe@talljoe.com>
Thu, 5 Jul 2018 00:01:16 +0000 (17:01 -0700)
committerJack Humbert <jack.humb@gmail.com>
Sun, 15 Jul 2018 17:29:59 +0000 (13:29 -0400)
quantum/process_keycode/process_tap_dance.c

index 94dd17c2fc0dfc68eae594ac1fc6722756f65203..83378069122ec2f700c0b3aecadd80e4b766cd51 100644 (file)
@@ -16,7 +16,9 @@
 #include "quantum.h"
 #include "action_tapping.h"
 
+#ifndef NO_ACTION_ONESHOT
 uint8_t get_oneshot_mods(void);
+#endif
 
 static uint16_t last_td;
 static int8_t highest_td = -1;
@@ -146,7 +148,11 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
       action->state.keycode = keycode;
       action->state.count++;
       action->state.timer = timer_read();
+#ifndef NO_ACTION_ONESHOT
       action->state.oneshot_mods = get_oneshot_mods();
+#else
+      action->state.oneshot_mods = 0;
+#endif
       action->state.weak_mods = get_mods();
       action->state.weak_mods |= get_weak_mods();
       process_tap_dance_action_on_each_tap (action);