File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2929
3030#ifdef ARDUINO_ARCH_SAMD
3131# include < Adafruit_SleepyDog.h>
32- # include < WiFi.h>
3332# define SAMD_WATCHDOG_MAX_TIME_ms (16 * 1000 )
3433#endif /* ARDUINO_ARCH_SAMD */
3534
3635#ifdef ARDUINO_ARCH_MBED
3736# include < watchdog_api.h>
38- # include < WiFi.h>
39- # include < Ethernet.h>
4037# define PORTENTA_H7_WATCHDOG_MAX_TIMEOUT_ms (32760 )
4138# define NANO_RP2040_WATCHDOG_MAX_TIMEOUT_ms (8389 )
4239#endif /* ARDUINO_ARCH_MBED */
4340
41+ #if defined (WIFI_HAS_FEED_WATCHDOG_FUNC) || defined (ARDUINO_PORTENTA_H7_WIFI_HAS_FEED_WATCHDOG_FUNC)
42+ # include < WiFi.h>
43+ #ifdef ARDUINO_PORTENTA_H7_M7
44+ # include < Ethernet.h>
45+ #endif
46+ #endif
47+
4448/* *****************************************************************************
4549 * GLOBAL VARIABLES
4650 ******************************************************************************/
You can’t perform that action at this time.
0 commit comments