volatile pro promenne, menene i z interruptu

This commit is contained in:
Pavel Brychta 2021-08-04 06:13:09 +02:00
parent d274be3897
commit bb9f036dec

View File

@ -137,9 +137,9 @@ protected:
uint8_t _scale;
uint8_t _color[3];
Ticker _handler;
ledstate_t _ledState; // stav LEDky (blika, dycha, ...)
ledstate_t _savedState; // stav pro navrat
int _subState; // pomocny stav/index v poli dychani
volatile ledstate_t _ledState; // stav LEDky (blika, dycha, ...)
volatile ledstate_t _savedState; // stav pro navrat
volatile int _subState; // pomocny stav/index v poli dychani
uint32_t _pulseDuration;
uint32_t _blinkSpeed;
LEDRGB _pulseColor;