|
26 | 26 | #if __has_include (<Arduino_DebugUtils.h>)
|
27 | 27 | #include <Arduino_DebugUtils.h>
|
28 | 28 | #else
|
29 |
| - #define DEBUG_ERROR(fmt, ...) |
30 |
| - #define DEBUG_WARNING(fmt, ...) |
31 |
| - #define DEBUG_INFO(fmt, ...) |
32 |
| - #define DEBUG_DEBUG(fmt, ...) |
33 |
| - #define DEBUG_VERBOSE(fmt, ...) |
| 29 | + #define ARDUINO_PORTENTA_OTA_NO_DEBUG |
34 | 30 | #endif
|
35 | 31 | #else
|
36 |
| - #define DEBUG_ERROR(fmt, ...) |
37 |
| - #define DEBUG_WARNING(fmt, ...) |
38 |
| - #define DEBUG_INFO(fmt, ...) |
39 |
| - #define DEBUG_DEBUG(fmt, ...) |
40 |
| - #define DEBUG_VERBOSE(fmt, ...) |
| 32 | + #define ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 33 | +#endif |
| 34 | + |
| 35 | +#ifdef ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 36 | + #define DEBUG_ERROR(fmt, ...) ((void)0) |
| 37 | + #define DEBUG_WARNING(fmt, ...) ((void)0) |
| 38 | + #define DEBUG_INFO(fmt, ...) ((void)0) |
| 39 | + #define DEBUG_DEBUG(fmt, ...) ((void)0) |
| 40 | + #define DEBUG_VERBOSE(fmt, ...) ((void)0) |
41 | 41 | #endif
|
| 42 | +#undef ARDUINO_PORTENTA_OTA_NO_DEBUG |
42 | 43 |
|
43 | 44 | #endif /* ARDUINO_PORTENTA_OTA_DEBUG_H_ */
|
0 commit comments