From 4813f062f7c5753f4cb915b291aa05e47e64624e Mon Sep 17 00:00:00 2001 From: Nic Limper Date: Sun, 3 Nov 2024 15:08:25 +0100 Subject: [PATCH] nightly reboot config option fix --- ESP32_AP-Flasher/src/web.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());