|
31 | 31 | #endif |
32 | 32 |
|
33 | 33 | #if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
34 | | -/* Define debug macros which effectively removes them from the |
35 | | - * the codebase for Arduino Uno WiFi. Rev. 2. |
36 | | - */ |
37 | | -# define DEBUG_ERROR |
38 | | -# define DEBUG_WARNING |
39 | | -# define DEBUG_INFO |
40 | | -# define DEBUG_DEBUG |
41 | | -# define DEBUG_VERBOSE |
42 | 34 | /* Provide defines for constants provided within Arduino_DebugUtils |
43 | 35 | * in order to allow older sketches using those constants to still |
44 | 36 | * compile. |
|
52 | 44 | #endif |
53 | 45 |
|
54 | 46 | #ifndef DEBUG_ERROR |
55 | | - #define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__) |
| 47 | +# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 48 | +# define DEBUG_ERROR(fmt, ...) |
| 49 | +# else |
| 50 | +# define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__) |
| 51 | +# endif |
56 | 52 | #endif |
57 | 53 |
|
58 | 54 | #ifndef DEBUG_WARNING |
59 | | - #define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__) |
| 55 | +# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 56 | +# define DEBUG_WARNING(fmt, ...) |
| 57 | +# else |
| 58 | +# define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__) |
| 59 | +# endif |
60 | 60 | #endif |
61 | 61 |
|
62 | 62 | #ifndef DEBUG_INFO |
63 | | - #define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__) |
| 63 | +# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 64 | +# define DEBUG_INFO(fmt, ...) |
| 65 | +# else |
| 66 | +# define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__) |
| 67 | +# endif |
64 | 68 | #endif |
65 | 69 |
|
66 | 70 | #ifndef DEBUG_DEBUG |
67 | | - #define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__) |
| 71 | +# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 72 | +# define DEBUG_DEBUG(fmt, ...) |
| 73 | +# else |
| 74 | +# define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__) |
| 75 | +# endif |
68 | 76 | #endif |
69 | 77 |
|
70 | 78 | #ifndef DEBUG_VERBOSE |
71 | | - #define DEBUG_VERBOSE(fmt, ...) //Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__) |
| 79 | +# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 80 | +# define DEBUG_VERBOSE(fmt, ...) |
| 81 | +# else |
| 82 | +# define DEBUG_VERBOSE(fmt, ...) //Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__) |
| 83 | +# endif |
72 | 84 | #endif |
73 | 85 |
|
74 | 86 | /****************************************************************************** |
|
0 commit comments