summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-03-04 22:10:13 -0800
committerskullydazed <skullydazed@users.noreply.github.com>2019-04-19 14:58:08 -0700
commitdd64a4e73868027b44a018278039cc42a01e730b (patch)
tree67c4a7d1008d7f11a3f81baba029b9eba89e8450 /tmk_core/common
parent1ef01ba4c695f2047415df3514e4e5edfaf2bc60 (diff)
Init RGB Matrix EEPROM
I'm not sure how to check if it's the same as RGBLIGHT's EEPROM, but if you don't init it, it **will not** work properly until it is initialized.
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/eeconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c
index 9c1e3520ee..30dc7a48d4 100644
--- a/tmk_core/common/eeconfig.c
+++ b/tmk_core/common/eeconfig.c
@@ -47,6 +47,9 @@ void eeconfig_init_quantum(void) {
eeprom_update_byte(EECONFIG_STENOMODE, 0);
eeprom_update_dword(EECONFIG_HAPTIC, 0);
eeprom_update_byte(EECONFIG_VELOCIKEY, 0);
+#ifdef EECONFIG_RGB_MATRIX
+ eeprom_update_dword(EECONFIG_RGB_MATRIX, 0);
+#endif
eeconfig_init_kb();
}
@@ -185,5 +188,3 @@ uint32_t eeconfig_read_haptic(void) { return eeprom_read_dword(EECONFIG_HAP
* FIXME: needs doc
*/
void eeconfig_update_haptic(uint32_t val) { eeprom_update_dword(EECONFIG_HAPTIC, val); }
-
-