Skip to content

Commit 53f1679

Browse files
committed
Rename DBG_* to DEBUG_* to avoid a conflict with the similiarly defined constants.
1 parent da94c6b commit 53f1679

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: examples/Arduino_Debug_Advance/Arduino_Debug_Advance.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void setup() {
2424
int i = 0;
2525

2626
void loop() {
27-
DBG_VERBOSE("i = %d", i);
27+
DEBUG_VERBOSE("i = %d", i);
2828
i++;
2929
delay(1000);
3030
}

Diff for: examples/Arduino_Debug_Basic/Arduino_Debug_Basic.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void setup() {
88
int i = 0;
99

1010
void loop() {
11-
DBG_INFO("i = %d", i);
11+
DEBUG_INFO("i = %d", i);
1212
i++;
1313
delay(1000);
1414
}

Diff for: src/Arduino_DebugUtils.h

+10-10
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,24 @@ extern Arduino_DebugUtils Debug;
9797
* DEFINE
9898
**************************************************************************************/
9999

100-
#ifndef DBG_ERROR
101-
# define DBG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__)
100+
#ifndef DEBUG_ERROR
101+
# define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__)
102102
#endif
103103

104-
#ifndef DBG_WARNING
105-
# define DBG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__)
104+
#ifndef DEBUG_WARNING
105+
# define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__)
106106
#endif
107107

108-
#ifndef DBG_INFO
109-
# define DBG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__)
108+
#ifndef DEBUG_INFO
109+
# define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__)
110110
#endif
111111

112-
#ifndef DBG_DEBUG
113-
# define DBG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__)
112+
#ifndef DEBUG_DEBUG
113+
# define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__)
114114
#endif
115115

116-
#ifndef DBG_VERBOSE
117-
# define DBG_VERBOSE(fmt, ...) Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
116+
#ifndef DEBUG_VERBOSE
117+
# define DEBUG_VERBOSE(fmt, ...) Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
118118
#endif
119119

120120
#endif /* ARDUINO_DEBUG_UTILS_H_ */

0 commit comments

Comments
 (0)