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/wilba_tech | |
parent | 7019d0bce890ca97937d62e843adcdc9b9a0d1fd (diff) | |
download | qmk_firmware-8a24fbbdaea4f3ff9bdcdf76036bedca6e335bce.tar.gz qmk_firmware-8a24fbbdaea4f3ff9bdcdf76036bedca6e335bce.zip |
Fix detection of EEPROM reset in some keyboards (#17970)
Diffstat (limited to 'keyboards/wilba_tech')
-rw-r--r-- | keyboards/wilba_tech/wt70_jb/wt70_jb.c | 6 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt_main.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/wilba_tech/wt70_jb/wt70_jb.c b/keyboards/wilba_tech/wt70_jb/wt70_jb.c index 0bb9aca092..d4f2c5c8da 100644 --- a/keyboards/wilba_tech/wt70_jb/wt70_jb.c +++ b/keyboards/wilba_tech/wt70_jb/wt70_jb.c @@ -38,9 +38,9 @@ bool led_update_kb(led_t led_state) { // 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()) { } else { // Cache "first execution" state so we can do something // specific after QMK initialization has done its thing. diff --git a/keyboards/wilba_tech/wt_main.c b/keyboards/wilba_tech/wt_main.c index a8ad795446..a7afeb5907 100644 --- a/keyboards/wilba_tech/wt_main.c +++ b/keyboards/wilba_tech/wt_main.c @@ -35,9 +35,9 @@ // 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()) { #if RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED backlight_config_load(); #endif // RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED |