diff --git a/src/pmic_adc.c b/src/pmic_adc.c index 3419faf..4c55d1e 100644 --- a/src/pmic_adc.c +++ b/src/pmic_adc.c @@ -348,7 +348,7 @@ int32_t Pmic_ADCGetStatus(Pmic_CoreHandle_t *pPmicCoreHandle, bool *pAdcBusy) // Extract ADC_STATUS bit if (status == PMIC_ST_SUCCESS) { - *pAdcBusy = Pmic_getBitField_b(PMIC_ADC_CTRL_REGADDR, PMIC_ADC_STATUS_SHIFT); + *pAdcBusy = Pmic_getBitField_b(adcCtrlRegData, PMIC_ADC_STATUS_SHIFT); } // Stop critical section after reading