Skip to content

Commit e4555f9

Browse files
committed
fix: RTC boot check
1 parent d84a78c commit e4555f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

radio/src/opentx.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ static void checkFailsafe()
624624
#endif
625625

626626
#if defined(GUI)
627-
void checkAll()
627+
void checkAll(bool isBootCheck)
628628
{
629629
#if defined(EEPROM_RLC) && !defined(SDCARD_RAW) && !defined(SDCARD_YAML)
630630
checkLowEEPROM();
@@ -640,9 +640,9 @@ void checkAll()
640640
checkSwitches();
641641
checkFailsafe();
642642

643-
644-
if (isVBatBridgeEnabled() && !g_eeGeneral.disableRtcWarning) {
643+
if (isBootCheck && !g_eeGeneral.disableRtcWarning) {
645644
// only done once at board start
645+
enableVBatBridge();
646646
checkRTCBattery();
647647
}
648648
disableVBatBridge();
@@ -1533,7 +1533,7 @@ void edgeTxInit()
15331533
}
15341534
else if (!(startOptions & OPENTX_START_NO_CHECKS)) {
15351535
checkAlarm();
1536-
checkAll();
1536+
checkAll(true);
15371537
PLAY_MODEL_NAME();
15381538
}
15391539
#endif // defined(GUI)

radio/src/opentx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void checkLowEEPROM();
355355
void checkThrottleStick();
356356
void checkSwitches();
357357
void checkAlarm();
358-
void checkAll();
358+
void checkAll(bool isBootCheck = false);
359359

360360
void getADC();
361361

0 commit comments

Comments
 (0)