Skip to content

Commit 2869f14

Browse files
committed
chore(example): add WL3 support to ADC internal channels
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9dcda4e commit 2869f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Peripherals/ADC/Internal_channels/Internal_channels.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static int32_t readTempSensor(int32_t VRef) {
8989
#ifdef __LL_ADC_CALC_TEMPERATURE
9090
#ifdef STM32U5xx
9191
temp = __LL_ADC_CALC_TEMPERATURE(ADC1, VRef, analogRead(ATEMP), LL_ADC_RESOLUTION);
92-
#elif defined(STM32WB0x)
92+
#elif defined(STM32WB0x) || defined(STM32WL3x)
9393
(void)VRef;
9494
temp = __LL_ADC_CALC_TEMPERATURE(analogRead(ATEMP), LL_ADC_DS_DATA_WIDTH_12_BIT);
9595
#else

0 commit comments

Comments
 (0)