Skip to content
Commit c77d5b8c authored by Mathieu Choplain's avatar Mathieu Choplain Committed by Carles Cufí
Browse files

drivers: sensor: stm32_vbat: handle disabled ADCs more gracefully



This commit modifies the STM32 battery voltage sensor driver
to handle erroneous usage more gracefully. More precisely,
it now fails builds with an explicit error message when the
sensor is enabled but the corresponding ADC is not. This can
only happen on STM32 series with more than one ADC (e.g., H7).

Signed-off-by: default avatarMathieu Choplain <mathieu.choplain@st.com>
parent 1e0e3a87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment