From 1d42beee60a30a4c4bf3d1b1117e4f9dfa808fff Mon Sep 17 00:00:00 2001 From: John Bui Date: Thu, 30 May 2024 12:53:12 -0500 Subject: [PATCH] PMICDRV-147: Pmic_ADCGetStatus() does not return any data Due to an incorrect parameter being passed to Pmic_getBitField_b() the register data was not being extracted to the user facing variable. Authored-by: John Bui Signed-off-by: Michael Leonard --- src/pmic_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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