Don't crash when Begin() is called more than once. (#146)

This commit is contained in:
alltheblinkythings
2016-12-11 16:53:32 -08:00
committed by Michael Miller
parent c35c9e4d70
commit a672d4ce55

View File

@@ -134,6 +134,7 @@ public:
void Initialize()
{
StopDma();
_dmaState = NeoDmaState_Sending; // start off sending empty buffer
uint8_t* is2Buffer = _i2sBuffer;