Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 8e9c1cb

Browse files
authored
Update Ethernet.ino
1 parent aebc097 commit 8e9c1cb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/Ethernet/Ethernet.ino

-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ EthernetInterface net;
44
void setup() {
55

66
/* ETH */
7-
mbed::Watchdog::get_instance().start(10000);
8-
97
int retry_count = 0;
108
eth_restart:
119
net.set_blocking(false);
1210
int res = net.connect();
1311
int start = millis();
1412
while ((millis() - start < 20000) && (net.get_connection_status() != NSAPI_STATUS_GLOBAL_UP)) {
1513
delay(10);
16-
mbed::Watchdog::get_instance().kick();
1714
}
1815
if (net.get_connection_status() != NSAPI_STATUS_GLOBAL_UP && retry_count++ < 2) {
1916
net.disconnect();

0 commit comments

Comments
 (0)