Disable VBatBridge after first run (#1388)
Checked with in-circuit-debugger on physical RM TX16S, only after this fix, isVBatBridgeEnabled() is really false.
This commit is contained in:
@@ -449,6 +449,7 @@ static void stm32_hal_adc_wait_completion()
|
|||||||
#if defined(ADC_EXT) && !defined(ADC_EXT_DMA_Stream)
|
#if defined(ADC_EXT) && !defined(ADC_EXT_DMA_Stream)
|
||||||
if (isVBatBridgeEnabled()) {
|
if (isVBatBridgeEnabled()) {
|
||||||
rtcBatteryVoltage = ADC_EXT->DR;
|
rtcBatteryVoltage = ADC_EXT->DR;
|
||||||
|
disableVBatBridge();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user