aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-28 10:52:59 +1100
committerNick Brassel <nick@tzarc.org>2021-01-28 10:52:59 +1100
commitd65db68f9f2614b91e3cb565086166b01400e473 (patch)
tree7477dbd7666a170444ffbf2ad29aa6d25189bf50 /quantum/rgblight.c
parent99f3df28939d89b7fc2d2e7c0ee21b0879c7813f (diff)
parentbad9592a18494e3f678c2a117a526ca5f2f2280d (diff)
downloadqmk_firmware-d65db68f9f2614b91e3cb565086166b01400e473.tar.gz
qmk_firmware-d65db68f9f2614b91e3cb565086166b01400e473.zip
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 44e9eade5..7d7d015ba 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -237,6 +237,17 @@ void rgblight_init(void) {
237 is_rgblight_initialized = true; 237 is_rgblight_initialized = true;
238} 238}
239 239
240void rgblight_reload_from_eeprom(void) {
241 /* Reset back to what we have in eeprom */
242 rgblight_config.raw = eeconfig_read_rgblight();
243 RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS;
244 rgblight_check_config();
245 eeconfig_debug_rgblight(); // display current eeprom values
246 if (rgblight_config.enable) {
247 rgblight_mode_noeeprom(rgblight_config.mode);
248 }
249}
250
240uint32_t rgblight_read_dword(void) { return rgblight_config.raw; } 251uint32_t rgblight_read_dword(void) { return rgblight_config.raw; }
241 252
242void rgblight_update_dword(uint32_t dword) { 253void rgblight_update_dword(uint32_t dword) {