Skip to content

Commit

Permalink
PMICDRV-147: Pmic_ADCGetStatus() does not return any data
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Leonard <[email protected]>
  • Loading branch information
JohnBuiTI authored and LeonardMH committed May 31, 2024
1 parent 1c36dd7 commit 1d42bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pmic_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d42bee

Please sign in to comment.