File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ int PDMClass::begin(int channels, long sampleRate)
7171 rawBufferLength = finalBufferLength;
7272 }
7373
74- /* Initialize Open PDM library */
75- filter.Fs = sampleRate;
76- filter.nSamples = rawBufferLength;
77- filter.LP_HZ = sampleRate/2 ;
78- filter.HP_HZ = 10 ;
79- filter.In_MicChannels = 1 ;
80- filter.Out_MicChannels = 1 ;
81- filter.Decimation = decimation;
82- Open_PDM_Filter_Init (&filter);
74+ /* Initialize Open PDM library */
75+ filter.Fs = sampleRate;
76+ filter.nSamples = rawBufferLength;
77+ filter.LP_HZ = sampleRate/2 ;
78+ filter.HP_HZ = 10 ;
79+ filter.In_MicChannels = 1 ;
80+ filter.Out_MicChannels = 1 ;
81+ filter.Decimation = decimation;
82+ Open_PDM_Filter_Init (&filter);
8383
8484 // Configure PIO state machine
8585 float clkDiv = (float )clock_get_hz (clk_sys) / sampleRate / decimation / 2 ;
@@ -185,4 +185,4 @@ void PDMClass::IrqHandler(bool halftranfer)
185185
186186PDMClass PDM (PIN_PDM_DIN, PIN_PDM_CLK, -1 );
187187
188- #endif
188+ #endif
You can’t perform that action at this time.
0 commit comments