From 3fb60649054a780a1d2a08d2d83eb3562cf78ef2 Mon Sep 17 00:00:00 2001 From: Pavel Brychta Date: Mon, 15 May 2023 15:01:57 +0200 Subject: [PATCH] Bugfix v pripade ukonceni pulzu --- src/wsLED.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wsLED.cpp b/src/wsLED.cpp index 0b96f90..26406af 100644 --- a/src/wsLED.cpp +++ b/src/wsLED.cpp @@ -242,6 +242,8 @@ void wsLED::pulse(LEDRGB color, uint32_t duration) _pulseColor = color; if (LED_BREATH == _ledState || LED_BLINK == _ledState) { _savedState = _ledState; + } else { + _savedState = LED_STOP; } _pulseDuration = duration; _ledState = LED_PULSE_START;