2121
2222#include " ArduinoDebugUtils.h"
2323
24+ /* *****************************************************************************
25+ NAMESPACE
26+ ******************************************************************************/
27+
28+ namespace impl
29+ {
30+
31+ /* *****************************************************************************
32+ CONSTANTS
33+ ******************************************************************************/
34+
35+ static DebugLevel const DEFAULT_DEBUG_LEVEL = DebugLevel::Info;
36+ static Stream * DEFAULT_OUTPUT_STREAM = &Serial;
37+
2438/* *****************************************************************************
2539 CTOR/DTOR
2640 ******************************************************************************/
@@ -66,7 +80,7 @@ void ArduinoDebugUtils::debugPrint(DebugLevel const debug_level, const char * fm
6680 {
6781 char timestamp[20 ];
6882 snprintf (timestamp, 20 , " [ %lu ] " , millis ());
69- debug_output_stream ->print (timestamp);
83+ _debug_output_stream ->print (timestamp);
7084 }
7185
7286 va_list args;
@@ -89,3 +103,15 @@ void ArduinoDebugUtils::vDebugPrint(char const * fmt, va_list args)
89103
90104 _debug_output_stream->println (msg_buf);
91105}
106+
107+ /* *****************************************************************************
108+ NAMESPACE
109+ ******************************************************************************/
110+
111+ } /* impl */
112+
113+ /* *****************************************************************************
114+ CLASS INSTANTIATION
115+ ******************************************************************************/
116+
117+ impl::ArduinoDebugUtils ArduinoDebugUtils;
0 commit comments