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/cannonkeys/satisfaction75/satisfaction75.c | |
parent | 7019d0bce890ca97937d62e843adcdc9b9a0d1fd (diff) |
Fix detection of EEPROM reset in some keyboards (#17970)
Diffstat (limited to 'keyboards/cannonkeys/satisfaction75/satisfaction75.c')
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction75.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.c b/keyboards/cannonkeys/satisfaction75/satisfaction75.c index bd7eaf1885..443a4d0d8a 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction75.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.c @@ -348,9 +348,9 @@ void custom_config_load(){ // Called from matrix_init_kb() if not VIA_ENABLE void via_init_kb(void) { - // If the EEPROM has the magic, the data is good. - // OK to load from EEPROM. - if (via_eeprom_is_valid()) { + // This checks both an EEPROM reset (from bootmagic lite, keycodes) + // and also firmware build date (from via_eeprom_is_valid()) + if (eeconfig_is_enabled()) { custom_config_load(); } else { #ifdef DYNAMIC_KEYMAP_ENABLE |