Pārlūkot izejas kodu

move `#include "rgb.h"` from quantum.h to quantum.c

I think `quantum.h` should contain only API declarations that `quantum.c` provides externally. `rgb.h` contains function weak definitions. This should not be in `quantum.h`.
mtei 6 gadi atpakaļ
vecāks
revīzija
2e8b32b9b5
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 0
      quantum/quantum.c
  2. 0 3
      quantum/quantum.h

+ 5 - 0
quantum/quantum.c

@@ -15,6 +15,11 @@
  */
 
 #include "quantum.h"
+
+#if !defined(RGBLIGHT_ENABLE) && !defined(RGB_MATRIX_ENABLE)
+	#include "rgb.h"
+#endif
+
 #ifdef PROTOCOL_LUFA
 #include "outputselect.h"
 #endif

+ 0 - 3
quantum/quantum.h

@@ -30,9 +30,6 @@
 #ifdef BACKLIGHT_ENABLE
     #include "backlight.h"
 #endif
-#if !defined(RGBLIGHT_ENABLE) && !defined(RGB_MATRIX_ENABLE)
-	#include "rgb.h"
-#endif
 #ifdef RGBLIGHT_ENABLE
   #include "rgblight.h"
 #else