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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user