rgblight split transfer non-eeprom config (#5396)
* Make rgblight_update_dword not update eeprom (we already have eeconfig_update_rgblight for that). Make split i2c keyboards transfer active rgblight config rather than eeprom saved version of rgblight config, enabling runtime changes that aren't persisted to eeprom. * prev_level and prev_rgb only store successfully transmitted values
This commit is contained in:
parent
fabdb3c4e8
commit
9c4424ae2c
4 changed files with 14 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue