diff options
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index d856f6d6c..ac4ff9bfd 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -234,6 +234,17 @@ void rgblight_init(void) { | |||
| 234 | is_rgblight_initialized = true; | 234 | is_rgblight_initialized = true; |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | void rgblight_reload_from_eeprom(void) { | ||
| 238 | /* Reset back to what we have in eeprom */ | ||
| 239 | rgblight_config.raw = eeconfig_read_rgblight(); | ||
| 240 | RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS; | ||
| 241 | rgblight_check_config(); | ||
| 242 | eeconfig_debug_rgblight(); // display current eeprom values | ||
| 243 | if (rgblight_config.enable) { | ||
| 244 | rgblight_mode_noeeprom(rgblight_config.mode); | ||
| 245 | } | ||
| 246 | } | ||
| 247 | |||
| 237 | uint32_t rgblight_read_dword(void) { return rgblight_config.raw; } | 248 | uint32_t rgblight_read_dword(void) { return rgblight_config.raw; } |
| 238 | 249 | ||
| 239 | void rgblight_update_dword(uint32_t dword) { | 250 | void rgblight_update_dword(uint32_t dword) { |
