Register bit name typo causes compiler warning due to bug #9
Labels
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
Projects
Milestone
There is a typo in the LL_PWR include for H5XX
This typo uses the wrong bit name:
Drivers/STM32H5xx_HAL_Driver/Inc/stm32h5xx_ll_pwr.h:1507:106: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
1507 | return ((READ_BIT(PWR->VMSR, PWR_VMSR_PVDO) == (PWR_VMSR_AVDO)) ? 1UL : 0UL);
The correction is to read the bit PWR_VMSR_AVDO and not PWR_VMSR_PVDO
bye.
The text was updated successfully, but these errors were encountered: