From 6cdd142d5c841eedb6a900cd50ee5f526f933eec Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 20 Jun 2022 20:16:55 -0400 Subject: [PATCH] Setting reset fix red Change-Id: I9174d7695b117fa10d10cda8ff9cccc50ebeb7f2 --- apps/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/main.c b/apps/main.c index d52c17a67e..515a9978f5 100644 --- a/apps/main.c +++ b/apps/main.c @@ -579,14 +579,11 @@ static void init(void) if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET) #else /* Reset settings if the hold button is turned on */ - if (button_hold()) + if (global_settings.clear_settings_on_hold && button_hold()) #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