From 665dca54f6779cd05404fb4832ccd3c5ad890504 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Thu, 17 Dec 2020 08:26:05 +0100 Subject: [PATCH] Workaround: Disable Neopixel while FTP-upload --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b190495..f4712c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1817,6 +1817,12 @@ void showLed(void *parameter) { FastLED.setBrightness(ledBrightness); for (;;) { + #ifdef FTP_ENABLE + if (ftpSrv.isConnected()) { // Workaround: after moving Neopixel's task to 2nd cpu-core, FTP-transfer-rate decreased. By disabling Neopixel-animation, this can be rescued a bit + vTaskDelay(portTICK_RATE_MS*100); + continue; + } + #endif if (!bootComplete) { // Rotates orange unless boot isn't complete FastLED.clear(); for (uint8_t led = 0; led < NUM_LEDS; led++) {