We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a430af commit 2b7bf53Copy full SHA for 2b7bf53
libraries/I2S/src/I2S.cpp
@@ -116,14 +116,15 @@ void I2SClass::end()
116
DMA.freeChannel(_dmaChannel);
117
}
118
119
+ _dmaTransferInProgress = false;
120
+
121
i2sd.disableSerializer(_deviceIndex);
122
i2sd.disableClockUnit(_deviceIndex);
123
124
pinMode(_sdPin, INPUT);
125
pinMode(_fsPin, INPUT);
126
pinMode(_sckPin, INPUT);
127
-
128
disableClock();
129
130
_beginCount--;
libraries/I2S/src/I2S.h
@@ -73,7 +73,7 @@ class I2SClass : public Stream
73
74
int _dmaChannel;
75
76
- bool _dmaTransferInProgress;
+ volatile bool _dmaTransferInProgress;
77
I2SDoubleBuffer _doubleBuffer;
78
79
void (*_onTransmit)(void);
0 commit comments