diff --git a/src/wsLED.cpp b/src/wsLED.cpp index d684f06..0b96f90 100644 --- a/src/wsLED.cpp +++ b/src/wsLED.cpp @@ -163,7 +163,6 @@ void INRAM wsLED::rtLed(void) if (timing < 30) { timing = 30; } - timing = 30; break; } diff --git a/src/wsLED.hpp b/src/wsLED.hpp index 2838bdc..7066d19 100644 --- a/src/wsLED.hpp +++ b/src/wsLED.hpp @@ -143,8 +143,8 @@ protected: uint32_t _blinkSpeed; LEDRGB _pulseColor; #if defined(ARDUINO_ARCH_ESP32) - int _rmtChannel; - rmt_item32_t led_data_buffer[LED_BUFFER_ITEMS]; + int _rmtChannel = 0; + rmt_item32_t led_data_buffer[LED_BUFFER_ITEMS] = {0}; #endif uint32_t _endtime;