this is using the mbed os version 5-13-1
Diff: source/debug.cpp
- Branch:
- PassingRegression
- Revision:
- 113:888e262ff0a9
- Parent:
- 107:f1a83fd41b17
--- a/source/debug.cpp Sat May 11 11:55:29 2019 +0000
+++ b/source/debug.cpp Sat May 18 10:50:49 2019 +0000
@@ -92,7 +92,7 @@
* @retval None
*/
//#define DEBUG_ENABLED
-void initialise_debug(void)
+void initialise_debug(uint8_t debug_level=NONE)
{
memset(g_dbg_buffer, 0, sizeof(g_dbg_buffer));
@@ -102,7 +102,7 @@
#ifdef DEBUG_ENABLED
current_debug_level = (LOG | ERR | TXT | DBG); //NONE; //
#else
- current_debug_level = NONE; //
+ current_debug_level = debug_level; //
#endif
dbg_data_mode = DATA_ASCII;
dbg_rx_pos = 0;