From df17f44692d4bcfeef2071544097ac14f3dbe2d8 Mon Sep 17 00:00:00 2001 From: pablo2048 Date: Fri, 6 Jan 2023 18:36:47 +0100 Subject: [PATCH] Oprava casovani --- src/wsLED.cpp | 1 - src/wsLED.hpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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;