print version if DEBUG level is 1+

This commit is contained in:
hathach committed 2017-03-07 17:03:34 +07:00
1 parent b7576c392e
commit 592f4a67cd
3 files changed
+14

No files matched your search

+8
View File
@@ -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();
}
/*------------------------------------------------------------------*/
/*
+2
View File
@@ -53,4 +53,6 @@ static inline int dbgHeapFree(void)
void dbgMemInfo(void);
void dbgPrintVersion(void);
#endif
+4
View File
@@ -33,6 +33,10 @@ static void loop_task(void* arg)
setup();
#if CFG_DEBUG
dbgPrintVersion();
#endif
while (1)
{
loop();