diff options
| author | Nick Brassel <nick@tzarc.org> | 2025-04-20 08:10:33 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-19 23:10:33 +0100 |
| commit | a4aabea5111b126f31420f95c0961f9a2bc26476 (patch) | |
| tree | fb4558e11b4e42d79e97c7c7f91dcf7616500b4d /quantum | |
| parent | c8763c9fdb488cf53364096acfa936190f18c981 (diff) | |
Fixup eeconfig lighting reset. (#25166)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/eeconfig.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/quantum/eeconfig.c b/quantum/eeconfig.c index 31bc9a6051..addc07ae53 100644 --- a/quantum/eeconfig.c +++ b/quantum/eeconfig.c | |||
| @@ -98,8 +98,8 @@ void eeconfig_init_quantum(void) { | |||
| 98 | #endif // AUDIO_ENABLE | 98 | #endif // AUDIO_ENABLE |
| 99 | 99 | ||
| 100 | #ifdef RGBLIGHT_ENABLE | 100 | #ifdef RGBLIGHT_ENABLE |
| 101 | rgblight_config_t rgblight_config = {0}; | 101 | extern void eeconfig_update_rgblight_default(void); |
| 102 | eeconfig_update_rgblight(&rgblight_config); | 102 | eeconfig_update_rgblight_default(); |
| 103 | #endif // RGBLIGHT_ENABLE | 103 | #endif // RGBLIGHT_ENABLE |
| 104 | 104 | ||
| 105 | #ifdef UNICODE_COMMON_ENABLE | 105 | #ifdef UNICODE_COMMON_ENABLE |
| @@ -112,13 +112,13 @@ void eeconfig_init_quantum(void) { | |||
| 112 | #endif // STENO_ENABLE | 112 | #endif // STENO_ENABLE |
| 113 | 113 | ||
| 114 | #ifdef RGB_MATRIX_ENABLE | 114 | #ifdef RGB_MATRIX_ENABLE |
| 115 | rgb_config_t rgb_matrix_config = {0}; | 115 | extern void eeconfig_update_rgb_matrix_default(void); |
| 116 | eeconfig_update_rgb_matrix(&rgb_matrix_config); | 116 | eeconfig_update_rgb_matrix_default(); |
| 117 | #endif | 117 | #endif |
| 118 | 118 | ||
| 119 | #ifdef LED_MATRIX_ENABLE | 119 | #ifdef LED_MATRIX_ENABLE |
| 120 | led_eeconfig_t led_matrix_config = {0}; | 120 | extern void eeconfig_update_led_matrix_default(void); |
| 121 | eeconfig_update_led_matrix(&led_matrix_config); | 121 | eeconfig_update_led_matrix_default(); |
| 122 | #endif // LED_MATRIX_ENABLE | 122 | #endif // LED_MATRIX_ENABLE |
| 123 | 123 | ||
| 124 | #ifdef HAPTIC_ENABLE | 124 | #ifdef HAPTIC_ENABLE |
| @@ -145,6 +145,15 @@ void eeconfig_init_quantum(void) { | |||
| 145 | #endif | 145 | #endif |
| 146 | 146 | ||
| 147 | eeconfig_init_kb(); | 147 | eeconfig_init_kb(); |
| 148 | |||
| 149 | #ifdef RGB_MATRIX_ENABLE | ||
| 150 | extern void eeconfig_force_flush_rgb_matrix(void); | ||
| 151 | eeconfig_force_flush_rgb_matrix(); | ||
| 152 | #endif // RGB_MATRIX_ENABLE | ||
| 153 | #ifdef LED_MATRIX_ENABLE | ||
| 154 | extern void eeconfig_force_flush_led_matrix(void); | ||
| 155 | eeconfig_force_flush_led_matrix(); | ||
| 156 | #endif // LED_MATRIX_ENABLE | ||
| 148 | } | 157 | } |
| 149 | 158 | ||
| 150 | void eeconfig_init(void) { | 159 | void eeconfig_init(void) { |
