File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ int PCMClass::Stop()
238
238
239
239
__attribute__ ((weak)) int pcm_lowlevel_init(uint32_t sampleRate)
240
240
{
241
+ (void )sampleRate;
241
242
return PCM_ERROR;
242
243
}
243
244
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ int pcm_lowlevel_stop()
159
159
ret = PCM_ERROR;
160
160
}
161
161
162
- return PCM_OK ;
162
+ return ret ;
163
163
}
164
164
165
165
/* *
@@ -232,7 +232,8 @@ void HAL_MDF_MspInit(MDF_HandleTypeDef *hmdf)
232
232
233
233
if (hmdf->Instance == DMIC_ONBOARD_FILTER) {
234
234
/* * Initializes the peripherals clock */
235
- RCC_PeriphCLKInitTypeDef PeriphClkInit = {0 };
235
+ RCC_PeriphCLKInitTypeDef PeriphClkInit;
236
+ memset (&PeriphClkInit, 0x0 , sizeof (RCC_PeriphCLKInitTypeDef));
236
237
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADF1;
237
238
PeriphClkInit.Adf1ClockSelection = RCC_ADF1CLKSOURCE_PLL3;
238
239
PeriphClkInit.PLL3 .PLL3Source = RCC_PLLSOURCE_HSE;
You can’t perform that action at this time.
0 commit comments