logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: d0ee4a1cb26ef2aeb6f512c92c3f810c443e1ca4
parent 38813e864bb5de13fc1aae0a31bbf12623850bde
Author: Dasky <32983009+daskygit@users.noreply.github.com>
Date:   Sun, 24 Mar 2024 00:20:05 +0000

Fix rgblight init (#23335)


Diffstat:

Mquantum/rgblight/rgblight.c7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c @@ -243,12 +243,12 @@ void rgblight_init(void) { rgblight_timer_init(); // setup the timer + rgblight_driver.init(); + if (rgblight_config.enable) { rgblight_mode_noeeprom(rgblight_config.mode); } - rgblight_driver.init(); - is_rgblight_initialized = true; } @@ -1568,4 +1568,4 @@ uint8_t rgblight_velocikey_match_speed(uint8_t minValue, uint8_t maxValue) { return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE)); } -#endif -\ No newline at end of file +#endif