Setting reset fix red

Change-Id: I9174d7695b117fa10d10cda8ff9cccc50ebeb7f2
This commit is contained in:
William Wilgus 2022-06-20 20:16:55 -04:00
parent ed37c2e894
commit 6cdd142d5c

View file

@ -579,14 +579,11 @@ static void init(void)
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET) if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
#else #else
/* Reset settings if the hold button is turned on */ /* Reset settings if the hold button is turned on */
if (button_hold()) if (global_settings.clear_settings_on_hold && button_hold())
#endif #endif
{ {
if (global_settings.clear_settings_on_hold) splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
{ settings_reset();
splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
settings_reset();
}
} }
#endif #endif