mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 13:12:08 +00:00
Change rgblight_update_sync() to use write_to_eeprom.
This commit is contained in:
parent
be6e022c0f
commit
eb33392898
@ -743,13 +743,13 @@ void rgblight_update_sync(rgblight_syncinfo_t *syncinfo, bool write_to_eeprom) {
|
|||||||
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_MODE) {
|
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_MODE) {
|
||||||
if (syncinfo->config.enable) {
|
if (syncinfo->config.enable) {
|
||||||
rgblight_config.enable = 1; // == rgblight_enable_noeeprom();
|
rgblight_config.enable = 1; // == rgblight_enable_noeeprom();
|
||||||
rgblight_mode_noeeprom(syncinfo->config.mode);
|
rgblight_mode_eeprom_helper(syncinfo->config.mode, write_to_eeprom);
|
||||||
} else {
|
} else {
|
||||||
rgblight_disable_noeeprom();
|
rgblight_disable_noeeprom();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_HSVS) {
|
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_HSVS) {
|
||||||
rgblight_sethsv_eeprom_helper(syncinfo->config.hue, syncinfo->config.sat, syncinfo->config.val, false);
|
rgblight_sethsv_eeprom_helper(syncinfo->config.hue, syncinfo->config.sat, syncinfo->config.val, write_to_eeprom);
|
||||||
// rgblight_config.speed = config->speed; // NEED???
|
// rgblight_config.speed = config->speed; // NEED???
|
||||||
}
|
}
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
#ifdef RGBLIGHT_USE_TIMER
|
||||||
|
Loading…
Reference in New Issue
Block a user