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 | |
| parent | 7019d0bce890ca97937d62e843adcdc9b9a0d1fd (diff) | |
Fix detection of EEPROM reset in some keyboards (#17970)
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction75.c | 6 | ||||
| -rw-r--r-- | keyboards/mxss/mxss_frontled.c | 6 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt70_jb/wt70_jb.c | 6 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_main.c | 6 |
4 files changed, 12 insertions, 12 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(){ | |||
| 348 | // Called from matrix_init_kb() if not VIA_ENABLE | 348 | // Called from matrix_init_kb() if not VIA_ENABLE |
| 349 | void via_init_kb(void) | 349 | void via_init_kb(void) |
| 350 | { | 350 | { |
| 351 | // If the EEPROM has the magic, the data is good. | 351 | // This checks both an EEPROM reset (from bootmagic lite, keycodes) |
| 352 | // OK to load from EEPROM. | 352 | // and also firmware build date (from via_eeprom_is_valid()) |
| 353 | if (via_eeprom_is_valid()) { | 353 | if (eeconfig_is_enabled()) { |
| 354 | custom_config_load(); | 354 | custom_config_load(); |
| 355 | } else { | 355 | } else { |
| 356 | #ifdef DYNAMIC_KEYMAP_ENABLE | 356 | #ifdef DYNAMIC_KEYMAP_ENABLE |
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 { |
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) { | |||
| 38 | // Called from matrix_init_kb() if not VIA_ENABLE | 38 | // Called from matrix_init_kb() if not VIA_ENABLE |
| 39 | void via_init_kb(void) | 39 | void via_init_kb(void) |
| 40 | { | 40 | { |
| 41 | // If the EEPROM has the magic, the data is good. | 41 | // This checks both an EEPROM reset (from bootmagic lite, keycodes) |
| 42 | // OK to load from EEPROM | 42 | // and also firmware build date (from via_eeprom_is_valid()) |
| 43 | if (via_eeprom_is_valid()) { | 43 | if (eeconfig_is_enabled()) { |
| 44 | } else { | 44 | } else { |
| 45 | // Cache "first execution" state so we can do something | 45 | // Cache "first execution" state so we can do something |
| 46 | // specific after QMK initialization has done its thing. | 46 | // 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 @@ | |||
| 35 | // Called from matrix_init_kb() if not VIA_ENABLE | 35 | // Called from matrix_init_kb() if not VIA_ENABLE |
| 36 | void via_init_kb(void) | 36 | void via_init_kb(void) |
| 37 | { | 37 | { |
| 38 | // If the EEPROM has the magic, the data is good. | 38 | // This checks both an EEPROM reset (from bootmagic lite, keycodes) |
| 39 | // OK to load from EEPROM | 39 | // and also firmware build date (from via_eeprom_is_valid()) |
| 40 | if (via_eeprom_is_valid()) { | 40 | if (eeconfig_is_enabled()) { |
| 41 | #if RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED | 41 | #if RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED |
| 42 | backlight_config_load(); | 42 | backlight_config_load(); |
| 43 | #endif // RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED | 43 | #endif // RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED |
