From da253b25bc2e77424df217622ea46c99e9033ca5 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 13 Jun 2017 12:57:56 +0200 Subject: [PATCH] Reset the watchdog timer on the ESP8266 when the sketch is done --- examples/USB_desc/USB_desc.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/USB_desc/USB_desc.ino b/examples/USB_desc/USB_desc.ino index cda8505c..8341c503 100644 --- a/examples/USB_desc/USB_desc.ino +++ b/examples/USB_desc/USB_desc.ino @@ -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 + } } }