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:
Risto
2022-01-09 10:49:35 +10:00
committed by GitHub
parent f8c01c3988
commit 293b8edd4b
@@ -449,6 +449,7 @@ static void stm32_hal_adc_wait_completion()
#if defined(ADC_EXT) && !defined(ADC_EXT_DMA_Stream)
if (isVBatBridgeEnabled()) {
rtcBatteryVoltage = ADC_EXT->DR;
disableVBatBridge();
}
#endif
#endif