Skip to content

Commit c996ed7

Browse files
committed
Set decimation and rawBufferIndex to their default value
1 parent 0841cfb commit c996ed7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/PDM/src/rp2040/PDM.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ void PDMClass::end()
139139
{
140140
dma_channel_abort(dmaChannel);
141141
pinMode(_clkPin, INPUT);
142+
decimation = 128;
143+
rawBufferIndex = 0;
142144
}
143145

144146
int PDMClass::available()

0 commit comments

Comments
 (0)