print version if DEBUG level is 1+
This commit is contained in:
1 parent
b7576c392e
commit
592f4a67cd
3 files changed
+14
No files matched your search
@@ -200,6 +200,14 @@ void dbgMemInfo(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
void dbgPrintVersion(void)
|
||||
{
|
||||
Serial.println();
|
||||
Serial.println("BSP Library: " ARDUINO_BSP_VERSION);
|
||||
Serial.printf ("Bootloader : %d.%d.%d\n", U32_BYTE2(bootloaderVersion), U32_BYTE3(bootloaderVersion), U32_BYTE4(bootloaderVersion));
|
||||
Serial.println("SoftDevice : S132 2.0.1");
|
||||
Serial.println();
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/*
|
||||
|
||||
@@ -53,4 +53,6 @@ static inline int dbgHeapFree(void)
|
||||
|
||||
void dbgMemInfo(void);
|
||||
|
||||
void dbgPrintVersion(void);
|
||||
|
||||
#endif
|
||||
@@ -33,6 +33,10 @@ static void loop_task(void* arg)
|
||||
|
||||
setup();
|
||||
|
||||
#if CFG_DEBUG
|
||||
dbgPrintVersion();
|
||||
#endif
|
||||
|
||||
while (1)
|
||||
{
|
||||
loop();
|
||||
|
||||
Reference in new issue
Block a user