Skip to content

Commit 708376e

Browse files
committed
Use Arduino_DebugUtils if already included in the build
1 parent 0a4d121 commit 708376e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/SecureElementConfig.h

+26
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,30 @@
2929
#define SECURE_ELEMENT_IS_SOFTSE
3030
#endif
3131

32+
#if defined __has_include
33+
#if __has_include (<Arduino_DebugUtils.h>)
34+
#include <Arduino_DebugUtils.h>
35+
#endif
36+
#endif
37+
38+
#ifndef DEBUG_ERROR
39+
#define DEBUG_ERROR(fmt, ...)
40+
#endif
41+
42+
#ifndef DEBUG_WARNING
43+
#define DEBUG_WARNING(fmt, ...)
44+
#endif
45+
46+
#ifndef DEBUG_INFO
47+
#define DEBUG_INFO(fmt, ...)
48+
#endif
49+
50+
#ifndef DEBUG_DEBUG
51+
#define DEBUG_DEBUG(fmt, ...)
52+
#endif
53+
54+
#ifndef DEBUG_VERBOSE
55+
#define DEBUG_VERBOSE(fmt, ...)
56+
#endif
57+
3258
#endif /* SECURE_ELEMENT_CONFIG_H_ */

0 commit comments

Comments
 (0)