diff options
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.c | 5 | ||||
-rw-r--r-- | keyboards/planck/ez/ez.c | 3 | ||||
-rw-r--r-- | quantum/quantum.c | 4 | ||||
-rw-r--r-- | quantum/quantum.h | 6 |
4 files changed, 5 insertions, 13 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c index 6f56fd8e12..5d121133aa 100644 --- a/keyboards/ergodox_ez/ergodox_ez.c +++ b/keyboards/ergodox_ez/ergodox_ez.c @@ -1,9 +1,5 @@ #include QMK_KEYBOARD_H -#ifdef WEBUSB_ENABLE -#include "webusb.h" -#endif - extern inline void ergodox_board_led_on(void); extern inline void ergodox_right_led_1_on(void); extern inline void ergodox_right_led_2_on(void); @@ -451,4 +447,3 @@ uint32_t layer_state_set_kb(uint32_t state) { return state; } #endif - diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index f34af7a290..fdb470b2e2 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -16,9 +16,6 @@ #include "ez.h" #include "ch.h" #include "hal.h" -#ifdef WEBUSB_ENABLE -#include "webusb.h" -#endif keyboard_config_t keyboard_config; diff --git a/quantum/quantum.c b/quantum/quantum.c index a3ff7adfbd..e182e62790 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -49,10 +49,6 @@ extern backlight_config_t backlight_config; # include "encoder.h" #endif -#ifdef WEBUSB_ENABLE -# include "webusb.h" -#endif - #ifdef AUDIO_ENABLE # ifndef GOODBYE_SONG # define GOODBYE_SONG SONG(GOODBYE_SOUND) diff --git a/quantum/quantum.h b/quantum/quantum.h index d1f9c086f0..9a38b036ff 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -157,11 +157,15 @@ extern layer_state_t layer_state; #include "dip_switch.h" #endif + +#ifdef WEBUSB_ENABLE +# include "webusb.h" +#endif + #ifdef DYNAMIC_MACRO_ENABLE #include "process_dynamic_macro.h" #endif - // Function substitutions to ease GPIO manipulation #if defined(__AVR__) typedef uint8_t pin_t; |