21
21
22
22
#include " ArduinoDebugUtils.h"
23
23
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
+
24
38
/* *****************************************************************************
25
39
CTOR/DTOR
26
40
******************************************************************************/
@@ -66,7 +80,7 @@ void ArduinoDebugUtils::debugPrint(DebugLevel const debug_level, const char * fm
66
80
{
67
81
char timestamp[20 ];
68
82
snprintf (timestamp, 20 , " [ %lu ] " , millis ());
69
- debug_output_stream ->print (timestamp);
83
+ _debug_output_stream ->print (timestamp);
70
84
}
71
85
72
86
va_list args;
@@ -89,3 +103,15 @@ void ArduinoDebugUtils::vDebugPrint(char const * fmt, va_list args)
89
103
90
104
_debug_output_stream->println (msg_buf);
91
105
}
106
+
107
+ /* *****************************************************************************
108
+ NAMESPACE
109
+ ******************************************************************************/
110
+
111
+ } /* impl */
112
+
113
+ /* *****************************************************************************
114
+ CLASS INSTANTIATION
115
+ ******************************************************************************/
116
+
117
+ impl::ArduinoDebugUtils ArduinoDebugUtils;
0 commit comments