diff --git a/ESP32_AP-Flasher/src/web.cpp b/ESP32_AP-Flasher/src/web.cpp index f724b7a5..183d9e03 100644 --- a/ESP32_AP-Flasher/src/web.cpp +++ b/ESP32_AP-Flasher/src/web.cpp @@ -603,7 +603,7 @@ void init_web() { config.preview = static_cast(request->getParam("preview", true)->value().toInt()); } if (request->hasParam("nightlyreboot", true)) { - config.preview = static_cast(request->getParam("nightlyreboot", true)->value().toInt()); + config.nightlyreboot = static_cast(request->getParam("nightlyreboot", true)->value().toInt()); } if (request->hasParam("lock", true)) { config.lock = static_cast(request->getParam("lock", true)->value().toInt());