Skip to content

Commit ed41198

Browse files
committed
Use ADC internal channels specific definitions
1 parent 354ffe8 commit ed41198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32F1/analogin_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ static inline uint16_t adc_read(analogin_t *obj)
150150
sConfig.Channel = ADC_CHANNEL_15;
151151
break;
152152
case 16:
153-
sConfig.Channel = ADC_CHANNEL_16;
153+
sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
154154
break;
155155
case 17:
156-
sConfig.Channel = ADC_CHANNEL_17;
156+
sConfig.Channel = ADC_CHANNEL_VREFINT;
157157
break;
158158
default:
159159
return 0;

0 commit comments

Comments
 (0)