Better handle EEPROM reset keycode (#18244)

master
Drashna Jaelre 2022-09-01 20:43:06 -07:00 committed by GitHub
parent 98ed5b6cfa
commit 423826a34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -361,8 +361,10 @@ bool process_record_quantum(keyrecord_t *record) {
#endif #endif
return false; return false;
case QK_CLEAR_EEPROM: case QK_CLEAR_EEPROM:
#ifdef NO_RESET
eeconfig_init(); eeconfig_init();
#ifndef NO_RESET #else
eeconfig_disable();
soft_reset_keyboard(); soft_reset_keyboard();
#endif #endif
return false; return false;