diff options
Diffstat (limited to 'keyboards/cannonkeys/stm32f072/keyboard.c')
-rw-r--r-- | keyboards/cannonkeys/stm32f072/keyboard.c | 3 |
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); | |||
86 | void matrix_init_kb(void){ | 86 | void matrix_init_kb(void){ |
87 | eeprom_init_kb(); | 87 | eeprom_init_kb(); |
88 | /* MOSI pin*/ | 88 | /* MOSI pin*/ |
89 | #ifdef RGBLIGHT_ENABLE | ||
89 | palSetPadMode(PORT_WS2812, PIN_WS2812, PAL_MODE_ALTERNATE(0)); | 90 | palSetPadMode(PORT_WS2812, PIN_WS2812, PAL_MODE_ALTERNATE(0)); |
90 | wait_ms(500); | 91 | wait_ms(500); |
91 | |||
92 | #ifdef RGBLIGHT_ENABLE | ||
93 | leds_init(); | 92 | leds_init(); |
94 | #endif | 93 | #endif |
95 | backlight_init_ports(); | 94 | backlight_init_ports(); |