Skip to content

Commit da1cba4

Browse files
committed
Tab to spaces
1 parent c315f5f commit da1cba4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

libraries/PDM/src/rp2040/PDM.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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

186186
PDMClass PDM(PIN_PDM_DIN, PIN_PDM_CLK, -1);
187187

188-
#endif
188+
#endif

0 commit comments

Comments
 (0)