We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2154ee2 commit f6b5d18Copy full SHA for f6b5d18
ports/stm32/adc.c
@@ -860,9 +860,9 @@ float adc_read_core_temp_float(ADC_HandleTypeDef *adcHandle) {
860
return 0;
861
}
862
#else
863
- #if defined(STM32L1)
+ #if defined(STM32L1) || defined(STM32L4)
864
// Update the reference correction factor before reading tempsensor
865
- // because TS_CAL1 and TS_CAL2 of STM32L1 are at VDDA=3.0V
+ // because TS_CAL1 and TS_CAL2 of STM32L1/L4 are at VDDA=3.0V
866
adc_read_core_vref(adcHandle);
867
#endif
868
int32_t raw_value = adc_config_and_read_ref(adcHandle, ADC_CHANNEL_TEMPSENSOR);
0 commit comments