mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Reset the watchdog timer on the ESP8266 when the sketch is done
This commit is contained in:
parent
c2b6dbf943
commit
da253b25bc
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@ void loop()
|
|||
Usb.ForEachUsbDevice(&PrintAllDescriptors);
|
||||
Usb.ForEachUsbDevice(&PrintAllAddresses);
|
||||
|
||||
while ( 1 ); //stop
|
||||
while ( 1 ) { // stop
|
||||
#ifdef ESP8266
|
||||
yield(); // needed in order to reset the watchdog timer on the ESP8266
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue