File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,12 @@ static void samd_watchdog_reset()
66
66
}
67
67
}
68
68
69
+ #if defined (WIFI_HAS_FEED_WATCHDOG_FUNC)
69
70
static void samd_watchdog_enable_network_feed ()
70
71
{
71
72
WiFi.setFeedWatchdogFunc (watchdog_reset);
72
73
}
74
+ #endif
73
75
74
76
/* This function is called within the WiFiNINA library when invoking
75
77
* the method 'connectBearSSL' in order to prevent a premature bite
@@ -122,6 +124,7 @@ static void mbed_watchdog_reset()
122
124
}
123
125
}
124
126
127
+ #if defined (ARDUINO_PORTENTA_H7_WIFI_HAS_FEED_WATCHDOG_FUNC)
125
128
static void mbed_watchdog_enable_network_feed (const bool use_ethernet)
126
129
{
127
130
if (use_ethernet) {
@@ -132,6 +135,7 @@ static void mbed_watchdog_enable_network_feed(const bool use_ethernet)
132
135
WiFi.setFeedWatchdogFunc (watchdog_reset);
133
136
}
134
137
}
138
+ #endif
135
139
136
140
void mbed_watchdog_trigger_reset ()
137
141
{
@@ -174,6 +178,7 @@ void watchdog_reset()
174
178
#endif
175
179
}
176
180
181
+ #if defined (WIFI_HAS_FEED_WATCHDOG_FUNC) || defined (ARDUINO_PORTENTA_H7_WIFI_HAS_FEED_WATCHDOG_FUNC)
177
182
void watchdog_enable_network_feed (const bool use_ethernet)
178
183
{
179
184
#ifdef ARDUINO_ARCH_SAMD
@@ -182,4 +187,5 @@ void watchdog_enable_network_feed(const bool use_ethernet)
182
187
mbed_watchdog_enable_network_feed (use_ethernet);
183
188
#endif
184
189
}
190
+ #endif
185
191
#endif /* (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) */
You can’t perform that action at this time.
0 commit comments