fix: RTC warning not being shown (#5209)

This commit is contained in:
Peter Feerick
2024-06-23 18:46:53 +10:00
committed by GitHub
parent 0d6d35ef02
commit 22114a67fa
4 changed files with 13 additions and 9 deletions
+4 -4
View File
@@ -624,7 +624,7 @@ static void checkFailsafe()
#endif
#if defined(GUI)
void checkAll()
void checkAll(bool isBootCheck)
{
#if defined(EEPROM_RLC) && !defined(SDCARD_RAW) && !defined(SDCARD_YAML)
checkLowEEPROM();
@@ -640,9 +640,9 @@ void checkAll()
checkSwitches();
checkFailsafe();
if (isVBatBridgeEnabled() && !g_eeGeneral.disableRtcWarning) {
if (isBootCheck && !g_eeGeneral.disableRtcWarning) {
// only done once at board start
enableVBatBridge();
checkRTCBattery();
}
disableVBatBridge();
@@ -1533,7 +1533,7 @@ void edgeTxInit()
}
else if (!(startOptions & OPENTX_START_NO_CHECKS)) {
checkAlarm();
checkAll();
checkAll(true);
PLAY_MODEL_NAME();
}
#endif // defined(GUI)