From 1843b585a9e8a0de91cd5fe4e760612a0fda93ac Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:31:16 +0100 Subject: [PATCH] Fix minimal compile error --- tasmota/xdrv_50_filesystem.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tasmota/xdrv_50_filesystem.ino b/tasmota/xdrv_50_filesystem.ino index bc09d5579..9a2b71128 100644 --- a/tasmota/xdrv_50_filesystem.ino +++ b/tasmota/xdrv_50_filesystem.ino @@ -396,6 +396,8 @@ void UFSDelete(void) { * Web support \*********************************************************************************************/ +#ifdef USE_WEBSERVER + const char UFS_WEB_DIR[] PROGMEM = "

"; @@ -645,6 +647,8 @@ void UfsUpload(void) { } } +#endif // USE_WEBSERVER + /*********************************************************************************************\ * Interface \*********************************************************************************************/ @@ -665,10 +669,7 @@ bool Xdrv50(uint8_t function) { case FUNC_WEB_ADD_HANDLER: Webserver->on("/ufsd", UfsDirectory); Webserver->on("/ufsu", HTTP_GET, UfsDirectory); - Webserver->on("/ufsu", HTTP_POST,[]() { - Webserver->sendHeader("Location","/ufsu"); - Webserver->send(303); - }, UfsUpload); + Webserver->on("/ufsu", HTTP_POST,[]() { Webserver->sendHeader("Location","/ufsu"); Webserver->send(303); }, UfsUpload); break; #endif // USE_WEBSERVER }