forked from Makuna/NeoPixelBus
Don't crash when Begin() is called more than once. (#146)
This commit is contained in:
committed by
Michael Miller
parent
c35c9e4d70
commit
a672d4ce55
@@ -134,6 +134,7 @@ public:
|
|||||||
|
|
||||||
void Initialize()
|
void Initialize()
|
||||||
{
|
{
|
||||||
|
StopDma();
|
||||||
_dmaState = NeoDmaState_Sending; // start off sending empty buffer
|
_dmaState = NeoDmaState_Sending; // start off sending empty buffer
|
||||||
|
|
||||||
uint8_t* is2Buffer = _i2sBuffer;
|
uint8_t* is2Buffer = _i2sBuffer;
|
||||||
|
Reference in New Issue
Block a user