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)
71
71
rawBufferLength = finalBufferLength;
72
72
}
73
73
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);
83
83
84
84
// Configure PIO state machine
85
85
float clkDiv = (float )clock_get_hz (clk_sys) / sampleRate / decimation / 2 ;
@@ -185,4 +185,4 @@ void PDMClass::IrqHandler(bool halftranfer)
185
185
186
186
PDMClass PDM (PIN_PDM_DIN, PIN_PDM_CLK, -1 );
187
187
188
- #endif
188
+ #endif
You can’t perform that action at this time.
0 commit comments