From e160a7845fd9e2c893fad696035839f6f5a38fdc Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Sun, 14 Feb 2021 20:11:54 +0100 Subject: [PATCH] Bugfix for not defining FTP_ENABLE --- src/main.cpp | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9258070..0f5cba0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2941,19 +2941,20 @@ void doRfidCardModifications(const uint32_t mod) { break; #endif case ENABLE_FTP_SERVER: - if (wifiManager() == WL_CONNECTED && !ftpEnableLastStatus && !ftpEnableCurrentStatus) { - ftpEnableLastStatus = true; - #ifdef NEOPIXEL_ENABLE - showLedOk = true; - #endif - } else { - #ifdef NEOPIXEL_ENABLE - showLedError = true; - loggerNl(serialDebug, (char *) FPSTR(unableToStartFtpServer), LOGLEVEL_ERROR); - #endif - } - - break; + #ifdef FTP_ENABLE + if (wifiManager() == WL_CONNECTED && !ftpEnableLastStatus && !ftpEnableCurrentStatus) { + ftpEnableLastStatus = true; + #ifdef NEOPIXEL_ENABLE + showLedOk = true; + #endif + } else { + #ifdef NEOPIXEL_ENABLE + showLedError = true; + loggerNl(serialDebug, (char *) FPSTR(unableToStartFtpServer), LOGLEVEL_ERROR); + #endif + } + #endif + break; default: snprintf(logBuf, serialLoglength, "%s %d !", (char *) FPSTR(modificatorDoesNotExist), mod); loggerNl(serialDebug, logBuf, LOGLEVEL_ERROR);