feat(diags): Red LED before RTC data, blue LED after (#3006)

* Added turning the red LED before RTC data and blue LED afterwards

With the LED turned RED if the RTC data retrieval fails it will stay red.
This will at least be an indication that the RTC startup encountered
a problem. For now there is no indication that this problem occurred.

* GH-3005 Moved LED manipulation to conditionally compiled when RTC operation happens
This commit is contained in:
Matthias Hryniszak
2023-01-15 12:02:03 +10:00
committed by GitHub
parent 8ee73a5800
commit a68c0cf58a
+3 -2
View File
@@ -236,11 +236,12 @@ void boardInit()
sportUpdateInit(); sportUpdateInit();
#endif #endif
ledBlue();
#if defined(RTCLOCK) && !defined(COPROCESSOR) #if defined(RTCLOCK) && !defined(COPROCESSOR)
ledRed();
rtcInit(); // RTC must be initialized before rambackupRestore() is called rtcInit(); // RTC must be initialized before rambackupRestore() is called
#endif #endif
ledBlue();
} }
void boardOff() void boardOff()