File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 3030 #define NTP_USE_RANDOM_PORT (1)
3131#endif
3232
33- #if defined(ARDUINO_AVR_UNO_WIFI_REV2 )
34- /* Provide defines for constants provided within Arduino_DebugUtils
35- * in order to allow older sketches using those constants to still
36- * compile.
37- */
38- # define DBG_NONE -1
39- # define DBG_ERROR 0
40- # define DBG_WARNING 1
41- # define DBG_INFO 2
42- # define DBG_DEBUG 3
43- # define DBG_VERBOSE 4
44- #endif
45-
4633#ifndef DEBUG_ERROR
4734# if defined(ARDUINO_AVR_UNO_WIFI_REV2 )
4835# define DEBUG_ERROR (fmt , ...)
8370# endif
8471#endif
8572
73+ #if defined(ARDUINO_AVR_UNO_WIFI_REV2 ) && !(defined(DEBUG_ERROR ) || defined(DEBUG_WARNING ) || defined(DEBUG_INFO ) || defined(DEBUG_DEBUG ) || defined(DEBUG_VERBOSE ))
74+ /* Provide defines for constants provided within Arduino_DebugUtils
75+ * in order to allow older sketches using those constants to still
76+ * compile.
77+ */
78+ # define DBG_NONE -1
79+ # define DBG_ERROR 0
80+ # define DBG_WARNING 1
81+ # define DBG_INFO 2
82+ # define DBG_DEBUG 3
83+ # define DBG_VERBOSE 4
84+ #endif
85+
8686/******************************************************************************
8787 * AUTOMATICALLY CONFIGURED DEFINES
8888 ******************************************************************************/
Original file line number Diff line number Diff line change 2626
2727#include < Arduino_ConnectionHandler.h>
2828
29- #if ! defined(__AVR__ )
29+ #if defined(DEBUG_ERROR) || defined(DEBUG_WARNING) || defined(DEBUG_INFO) || defined(DEBUG_DEBUG) || defined(DEBUG_VERBOSE )
3030# include < Arduino_DebugUtils.h>
3131#endif
3232
You can’t perform that action at this time.
0 commit comments