remove restart timer

This commit is contained in:
technyon
2023-04-09 10:15:12 +02:00
parent c34eeb11e1
commit 37aa03d925
4 changed files with 4 additions and 15 deletions

View File

@@ -153,11 +153,6 @@ bool initPreferences()
preferences->putBool(preference_lock_enabled, true);
}
if(preferences->getInt(preference_restart_timer) == 0)
{
preferences->putInt(preference_restart_timer, -1);
}
return firstStart;
}
@@ -174,9 +169,9 @@ void setup()
CharBuffer::initialize();
if(preferences->getInt(preference_restart_timer) > 0)
if(preferences->getInt(preference_restart_timer) != 0)
{
restartTs = preferences->getInt(preference_restart_timer) * 60 * 1000;
preferences->remove(preference_restart_timer);
}
lockEnabled = preferences->getBool(preference_lock_enabled);