From 8a24fbbdaea4f3ff9bdcdf76036bedca6e335bce Mon Sep 17 00:00:00 2001
From: Wilba <wilba@wilba.tech>
Date: Wed, 10 Aug 2022 13:01:09 +1000
Subject: Fix detection of EEPROM reset in some keyboards (#17970)

---
 keyboards/mxss/mxss_frontled.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'keyboards/mxss')

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))
 size_t lc_size = sizeof(layer_colors) / sizeof(hs_set);
 
 void fled_init(void) {
-    // If EEPROM config exists, load it
-    // If VIA EEPROM exists, FLED config should too
-    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()) {
         fled_load_conf();
     // Else, default config
     } else {
-- 
cgit v1.2.3