From 060a3190076769d1ada8e06249bd75f291d2f307 Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Mon, 27 Jul 2020 03:50:49 -0700 Subject: Init RGB Matrix later --- quantum/quantum.c | 3 --- tmk_core/common/keyboard.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/quantum/quantum.c b/quantum/quantum.c index af275bb2da..03d40bf1b0 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -628,9 +628,6 @@ void matrix_init_quantum() { #ifdef AUDIO_ENABLE audio_init(); #endif -#ifdef RGB_MATRIX_ENABLE - rgb_matrix_init(); -#endif #ifdef ENCODER_ENABLE encoder_init(); #endif diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index c030da8130..92607b5ce8 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c @@ -86,6 +86,9 @@ along with this program. If not, see . #ifdef VIA_ENABLE # include "via.h" #endif +#ifdef RGB_MATRIX_ENABLE +# include "rgb_matrix.h" +#endif // Only enable this if console is enabled to print to #if defined(DEBUG_MATRIX_SCAN_RATE) && defined(CONSOLE_ENABLE) @@ -251,6 +254,9 @@ void keyboard_init(void) { #ifdef RGBLIGHT_ENABLE rgblight_init(); #endif +#ifdef RGB_MATRIX_ENABLE + rgb_matrix_init(); +#endif #ifdef STENO_ENABLE steno_init(); #endif -- cgit v1.2.3