From fc106675b770d867b62e6ba21222981697511d2d Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 14 Oct 2025 08:52:54 +0200 Subject: [PATCH] chore(example): add WL3 support to ADC internal channels Signed-off-by: Frederic Pillon --- .../Peripherals/ADC/Internal_channels/Internal_channels.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Peripherals/ADC/Internal_channels/Internal_channels.ino b/examples/Peripherals/ADC/Internal_channels/Internal_channels.ino index 73df14a..8f24d14 100644 --- a/examples/Peripherals/ADC/Internal_channels/Internal_channels.ino +++ b/examples/Peripherals/ADC/Internal_channels/Internal_channels.ino @@ -89,7 +89,7 @@ static int32_t readTempSensor(int32_t VRef) { #ifdef __LL_ADC_CALC_TEMPERATURE #ifdef STM32U5xx temp = __LL_ADC_CALC_TEMPERATURE(ADC1, VRef, analogRead(ATEMP), LL_ADC_RESOLUTION); -#elif defined(STM32WB0x) +#elif defined(STM32WB0x) || defined(STM32WL3x) (void)VRef; temp = __LL_ADC_CALC_TEMPERATURE(analogRead(ATEMP), LL_ADC_DS_DATA_WIDTH_12_BIT); #else