File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 87
87
* AUTOMATICALLY CONFIGURED DEFINES
88
88
******************************************************************************/
89
89
90
+ #ifdef ARDUINO_ARCH_SAMD
91
+ # define WATCHDOG_ENABLED (1)
92
+ #else
93
+ # define WATCHDOG_ENABLED (0)
94
+ #endif
95
+
90
96
#if defined(ARDUINO_SAMD_MKRWIFI1010 ) || defined(ARDUINO_SAMD_NANO_33_IOT ) || \
91
97
defined(ARDUINO_AVR_UNO_WIFI_REV2 )
92
98
#define OTA_STORAGE_SNU (1)
Original file line number Diff line number Diff line change 25
25
* FUNCTION DEFINITION
26
26
******************************************************************************/
27
27
28
- #ifdef ARDUINO_ARCH_SAMD
28
+ #if WATCHDOG_ENABLED
29
+ # ifdef ARDUINO_ARCH_SAMD
29
30
/* This function is called within the WiFiNINA library when invoking
30
31
* the method 'connectBearSSL' in order to prevent a premature bite
31
32
* of the watchdog (max timeout on SAMD is 16 s). wifi_nina_feed...
@@ -36,4 +37,5 @@ void wifi_nina_feed_watchdog()
36
37
{
37
38
Watchdog.reset ();
38
39
}
39
- #endif /* ARDUINO_ARCH_SAMD */
40
+ # endif /* ARDUINO_ARCH_SAMD */
41
+ #endif /* WATCHDOG_ENABLED */
Original file line number Diff line number Diff line change 22
22
* INCLUDE
23
23
******************************************************************************/
24
24
25
- #ifdef ARDUINO_ARCH_SAMD
26
- # include <Adafruit_SleepyDog.h>
27
- # define SAMD_WATCHDOG_MAX_TIME_ms (16 * 1000)
28
- #endif /* ARDUINO_ARCH_SAMD */
25
+ #include <AIoTC_Config.h>
26
+
27
+ #if WATCHDOG_ENABLED
28
+ # ifdef ARDUINO_ARCH_SAMD
29
+ # include <Adafruit_SleepyDog.h>
30
+ # define SAMD_WATCHDOG_MAX_TIME_ms (16 * 1000)
31
+ # endif /* ARDUINO_ARCH_SAMD */
32
+ #endif /* WATCHDOG_ENABLED */
29
33
30
34
#endif /* ARDUINO_AIOTC_UTILITY_WATCHDOG_H_ */
You can’t perform that action at this time.
0 commit comments