diff options
| author | Wilba <wilba@wilba.tech> | 2022-08-10 13:01:09 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-09 20:01:09 -0700 |
| commit | 8a24fbbdaea4f3ff9bdcdf76036bedca6e335bce (patch) | |
| tree | 022f2696570a1b564daa36d8bed3df22cf960307 /keyboards/mxss | |
| parent | 7019d0bce890ca97937d62e843adcdc9b9a0d1fd (diff) | |
Fix detection of EEPROM reset in some keyboards (#17970)
Diffstat (limited to 'keyboards/mxss')
| -rw-r--r-- | keyboards/mxss/mxss_frontled.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/mxss/mxss_frontled.c b/keyboards/mxss/mxss_frontled.c index f5e4613dfb..8bb93d5fd8 100644 --- a/keyboards/mxss/mxss_frontled.c +++ b/keyboards/mxss/mxss_frontled.c | |||
| @@ -39,9 +39,9 @@ __attribute__ ((weak)) | |||
| 39 | size_t lc_size = sizeof(layer_colors) / sizeof(hs_set); | 39 | size_t lc_size = sizeof(layer_colors) / sizeof(hs_set); |
| 40 | 40 | ||
| 41 | void fled_init(void) { | 41 | void fled_init(void) { |
| 42 | // If EEPROM config exists, load it | 42 | // This checks both an EEPROM reset (from bootmagic lite, keycodes) |
| 43 | // If VIA EEPROM exists, FLED config should too | 43 | // and also firmware build date (from via_eeprom_is_valid()) |
| 44 | if (via_eeprom_is_valid()) { | 44 | if (eeconfig_is_enabled()) { |
| 45 | fled_load_conf(); | 45 | fled_load_conf(); |
| 46 | // Else, default config | 46 | // Else, default config |
| 47 | } else { | 47 | } else { |
