We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59dda71 commit de9528dCopy full SHA for de9528d
1 file changed
ports/stm32/adc.c
@@ -137,7 +137,10 @@ static inline uint32_t adc_get_internal_channel(uint32_t channel) {
137
}
138
139
STATIC bool is_adcx_channel(int channel) {
140
-#if defined(STM32F4) || defined(STM32F7)
+#if defined(STM32F411xE)
141
+ // The HAL has an incorrect IS_ADC_CHANNEL macro for the F411 so we check for temp
142
+ return IS_ADC_CHANNEL(channel) || channel == ADC_CHANNEL_TEMPSENSOR;
143
+#elif defined(STM32F4) || defined(STM32F7)
144
return IS_ADC_CHANNEL(channel);
145
#elif defined(STM32L4)
146
ADC_HandleTypeDef handle;
0 commit comments