nightly reboot config option fix

This commit is contained in:
Nic Limper
2024-11-03 15:08:25 +01:00
parent 1052102032
commit 4813f062f7

View File

@@ -603,7 +603,7 @@ void init_web() {
config.preview = static_cast<uint8_t>(request->getParam("preview", true)->value().toInt());
}
if (request->hasParam("nightlyreboot", true)) {
config.preview = static_cast<uint8_t>(request->getParam("nightlyreboot", true)->value().toInt());
config.nightlyreboot = static_cast<uint8_t>(request->getParam("nightlyreboot", true)->value().toInt());
}
if (request->hasParam("lock", true)) {
config.lock = static_cast<uint8_t>(request->getParam("lock", true)->value().toInt());