Skip to content

Commit 59627db

Browse files
committed
Prevent inclusion of 'Arduino_DebugUtils' on AVR in a more future-proof and maintainable way.
1 parent df6818a commit 59627db

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/AIoTC_Config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#define DBG_INFO
3737
#define DBG_DEBUG
3838
#define DBG_VERBOSE
39-
// avoid including debugutils
40-
#define ARDUINO_DEBUG_UTILS_H_
4139
#endif
4240

4341
#ifndef DBG_ERROR

src/ArduinoIoTCloud.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
#include <AIoTC_Config.h>
2626

2727
#include <Arduino_ConnectionHandler.h>
28-
#include <Arduino_DebugUtils.h>
28+
29+
#if !defined(__AVR__)
30+
# include <Arduino_DebugUtils.h>
31+
#endif
2932

3033
#include "AIoTC_Const.h"
3134

0 commit comments

Comments
 (0)