Use ADC internal channels specific definitions

pull/2930/head
bcostm 2016-10-05 15:20:55 +02:00
parent 670b0984eb
commit 480d784497
1 changed files with 4 additions and 4 deletions

View File

@ -153,14 +153,14 @@ static inline uint16_t adc_read(analogin_t *obj) {
sConfig.Channel = ADC_CHANNEL_15;
break;
case 16:
sConfig.Channel = ADC_CHANNEL_16;
sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
break;
case 17:
sConfig.Channel = ADC_CHANNEL_17;
sConfig.Channel = ADC_CHANNEL_VREFINT;
break;
#ifdef ADC_CHANNEL_18
#ifdef ADC_CHANNEL_VBAT
case 18:
sConfig.Channel = ADC_CHANNEL_18;
sConfig.Channel = ADC_CHANNEL_VBAT;
break;
#endif
default: