We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e90a3 commit 6503adcCopy full SHA for 6503adc
libraries/PDM/src/PDM.cpp
@@ -197,7 +197,9 @@ uint32_t AP3_PDM::getDecimationRate()
197
//Send a given configuration struct to PDM
198
bool AP3_PDM::updateConfig(am_hal_pdm_config_t newConfiguration)
199
{
200
- ap3_err_t retval = (ap3_err_t)am_hal_pdm_configure(_PDMhandle, &newConfiguration);
+ _PDMconfig = newConfiguration;
201
+ ap3_err_t retval = (ap3_err_t)am_hal_pdm_configure(_PDMhandle, &_PDMconfig);
202
+
203
if (retval != AP3_OK)
204
205
return false;
0 commit comments