]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Adds default value for TAPPING_TERM if Tap Dance is enabled (#2785)
authorDrashna Jaelre <drashna@live.com>
Mon, 1 Oct 2018 15:09:05 +0000 (08:09 -0700)
committerJack Humbert <jack.humb@gmail.com>
Mon, 1 Oct 2018 15:09:05 +0000 (11:09 -0400)
* Force require TAPPING_TERM if Tap Dance is enabled

* Handle lack of TAPPING_TERM more gracefully

quantum/process_keycode/process_tap_dance.c
quantum/quantum.h

index 83378069122ec2f700c0b3aecadd80e4b766cd51..b55ace5ba8372dc7deeadf0235150daaa26074c4 100644 (file)
 #include "quantum.h"
 #include "action_tapping.h"
 
+#ifndef TAPPING_TERM
+#define TAPPING_TERM 200
+#endif
+
 #ifndef NO_ACTION_ONESHOT
 uint8_t get_oneshot_mods(void);
 #endif
index 6833332117b8563ea13fe35f50259245aeec5f18..87a61356c7dcaef83f7938cf9c92203c1c78dd38 100644 (file)
@@ -31,7 +31,7 @@
     #include "backlight.h"
 #endif
 #if !defined(RGBLIGHT_ENABLE) && !defined(RGB_MATRIX_ENABLE)
-    #include "rgb.h"
+       #include "rgb.h"
 #endif
 #ifdef RGBLIGHT_ENABLE
   #include "rgblight.h"
@@ -108,7 +108,9 @@ extern uint32_t default_layer_state;
     #include "process_unicodemap.h"
 #endif
 
-#include "process_tap_dance.h"
+#ifdef TAP_DANCE_ENABLE
+  #include "process_tap_dance.h"
+#endif
 
 #ifdef PRINTING_ENABLE
     #include "process_printer.h"