Remove redundant call

Remove redundant call
This commit is contained in:
Theo Arends 2019-05-20 10:25:49 +02:00
parent 3078053301
commit 1a6acf5078
1 changed files with 3 additions and 1 deletions

View File

@ -2181,7 +2181,9 @@ void Every250mSeconds(void)
SettingsDefault();
restart_flag = 2;
}
SettingsSaveAll();
if (2 == restart_flag) {
SettingsSaveAll();
}
restart_flag--;
if (restart_flag <= 0) {
AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_APPLICATION D_RESTARTING));