Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

full reset of fastled at each configure

Geod97b3c5305ec
diff --git a/src/Services/LedService.cpp b/src/Services/LedService.cpp
index e9421b37..512d4780 100644
--- a/src/Services/LedService.cpp
+++ b/src/Services/LedService.cpp
@@ -12,13 +12,12 @@ void LedService::configure(uint8_t dataPin, uint8_t clockPin, uint16_t length, c
FastLED.clear(true);
delete[] leds;
leds = nullptr;
- FastLED = CFastLED(); // full reset of FastLED
delay(20);
}
-
+
+ FastLED = CFastLED(); // full reset of FastLED
ledCount = length;
leds = new CRGB[ledCount];
-
FastLED.clear();
FastLED.clearData();