diff options
author | Len Trigg <lenbok@gmail.com> | 2019-03-16 09:46:49 +1300 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-15 13:46:49 -0700 |
commit | 9c4424ae2cd86002cd2f4140eff7108212ef884e (patch) | |
tree | 02885c02070df4a3f7ee0feb36a28123faf425f0 /quantum/api.c | |
parent | fabdb3c4e8ce4659539a2b0fa4cafc56a07d6c2d (diff) | |
download | qmk_firmware-9c4424ae2cd86002cd2f4140eff7108212ef884e.tar.gz qmk_firmware-9c4424ae2cd86002cd2f4140eff7108212ef884e.zip |
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
Diffstat (limited to 'quantum/api.c')
-rw-r--r-- | quantum/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/api.c b/quantum/api.c index 52dfe23e1..233f99636 100644 --- a/quantum/api.c +++ b/quantum/api.c | |||
@@ -67,7 +67,7 @@ void process_api(uint16_t length, uint8_t * data) { | |||
67 | case DT_RGBLIGHT: { | 67 | case DT_RGBLIGHT: { |
68 | #ifdef RGBLIGHT_ENABLE | 68 | #ifdef RGBLIGHT_ENABLE |
69 | uint32_t rgblight = bytes_to_dword(data, 2); | 69 | uint32_t rgblight = bytes_to_dword(data, 2); |
70 | rgblight_update_dword(rgblight); | 70 | eeconfig_update_rgblight(rgblight); |
71 | #endif | 71 | #endif |
72 | break; | 72 | break; |
73 | } | 73 | } |