Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: source/debug.cpp
- Branch:
- PassingRegression
- Revision:
- 113:888e262ff0a9
- Parent:
- 107:f1a83fd41b17
diff -r a0999ea4ece0 -r 888e262ff0a9 source/debug.cpp
--- 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;