aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/cannonkeys/stm32f072
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cannonkeys/stm32f072')
-rw-r--r--keyboards/cannonkeys/stm32f072/keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/keyboards/cannonkeys/stm32f072/keyboard.c b/keyboards/cannonkeys/stm32f072/keyboard.c
index 9520398d0..5a9ccafff 100644
--- a/keyboards/cannonkeys/stm32f072/keyboard.c
+++ b/keyboards/cannonkeys/stm32f072/keyboard.c
@@ -86,10 +86,9 @@ void matrix_init_board(void);
void matrix_init_kb(void){
eeprom_init_kb();
/* MOSI pin*/
+#ifdef RGBLIGHT_ENABLE
palSetPadMode(PORT_WS2812, PIN_WS2812, PAL_MODE_ALTERNATE(0));
wait_ms(500);
-
-#ifdef RGBLIGHT_ENABLE
leds_init();
#endif
backlight_init_ports();