summaryrefslogtreecommitdiff
path: root/quantum/rgblight
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2024-03-24 00:20:05 +0000
committerGitHub <noreply@github.com>2024-03-24 11:20:05 +1100
commitd0ee4a1cb26ef2aeb6f512c92c3f810c443e1ca4 (patch)
tree3cdc6451231a8d012bd6b7b136479839c59c376b /quantum/rgblight
parent38813e864bb5de13fc1aae0a31bbf12623850bde (diff)
Fix rgblight init (#23335)
Diffstat (limited to 'quantum/rgblight')
-rw-r--r--quantum/rgblight/rgblight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c
index b17a501eef..62137c020b 100644
--- a/quantum/rgblight/rgblight.c
+++ b/quantum/rgblight/rgblight.c
@@ -243,12 +243,12 @@ void rgblight_init(void) {
243 243
244 rgblight_timer_init(); // setup the timer 244 rgblight_timer_init(); // setup the timer
245 245
246 rgblight_driver.init();
247
246 if (rgblight_config.enable) { 248 if (rgblight_config.enable) {
247 rgblight_mode_noeeprom(rgblight_config.mode); 249 rgblight_mode_noeeprom(rgblight_config.mode);
248 } 250 }
249 251
250 rgblight_driver.init();
251
252 is_rgblight_initialized = true; 252 is_rgblight_initialized = true;
253} 253}
254 254
@@ -1568,4 +1568,4 @@ uint8_t rgblight_velocikey_match_speed(uint8_t minValue, uint8_t maxValue) {
1568 return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE)); 1568 return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE));
1569} 1569}
1570 1570
1571#endif \ No newline at end of file 1571#endif