summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-09-01 20:43:06 -0700
committerGitHub <noreply@github.com>2022-09-01 20:43:06 -0700
commit423826a34a2b5839a10188f2be84e518ac44bd47 (patch)
tree44dd6524b666a34590c480f9d9d017259f80ca4b /quantum
parent98ed5b6cfa54c81195699452b0c74304cc7086ab (diff)
Better handle EEPROM reset keycode (#18244)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 9a0016b150..acafd8025c 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -361,8 +361,10 @@ bool process_record_quantum(keyrecord_t *record) {
#endif
return false;
case QK_CLEAR_EEPROM:
+#ifdef NO_RESET
eeconfig_init();
-#ifndef NO_RESET
+#else
+ eeconfig_disable();
soft_reset_keyboard();
#endif
return false;