Move RTC again to RADIO/HARDWARE

This commit is contained in:
Bertrand Songis
2019-07-05 17:21:36 +02:00
parent 680a1ba470
commit 50c23fa394
16 changed files with 234 additions and 317 deletions
+5 -4
View File
@@ -846,11 +846,12 @@ void checkSDVersion()
#if defined(STM32)
static void checkRTCBattery()
{
if (getRTCBatteryVoltage() < 200) {
ALERT("BATTERY", STR_WARN_RTC_BATTERY_LOW, AU_ERROR);
if (isVBatBridgeEnabled()) {
if (getRTCBatteryVoltage() < 200) {
ALERT("BATTERY", STR_WARN_RTC_BATTERY_LOW, AU_ERROR);
}
disableVBatBridge();
}
disableVBatBridge();
}
#endif