]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/rgblight.c
rgblight split transfer non-eeprom config (#5396)
[qmk_firmware.git] / quantum / rgblight.c
index 52e0be8ba01604e7a63ef8b3fa33eaedd3d29031..119ca1b9eeeb4392cb6914b5b675744ef6284cef 100644 (file)
@@ -225,11 +225,14 @@ void rgblight_init(void) {
 
 }
 
+uint32_t rgblight_read_dword(void) {
+  return rgblight_config.raw;
+}
+
 void rgblight_update_dword(uint32_t dword) {
   rgblight_config.raw = dword;
-  eeconfig_update_rgblight(rgblight_config.raw);
   if (rgblight_config.enable)
-    rgblight_mode(rgblight_config.mode);
+    rgblight_mode_noeeprom(rgblight_config.mode);
   else {
 #ifdef RGBLIGHT_USE_TIMER
       rgblight_timer_disable();