Reset the watchdog timer on the ESP8266 when the sketch is done

This commit is contained in:
Kristian Sloth Lauszus 2017-06-13 12:57:56 +02:00
parent c2b6dbf943
commit da253b25bc

View file

@ -104,7 +104,11 @@ void loop()
Usb.ForEachUsbDevice(&PrintAllDescriptors); Usb.ForEachUsbDevice(&PrintAllDescriptors);
Usb.ForEachUsbDevice(&PrintAllAddresses); Usb.ForEachUsbDevice(&PrintAllAddresses);
while ( 1 ); //stop while ( 1 ) { // stop
#ifdef ESP8266
yield(); // needed in order to reset the watchdog timer on the ESP8266
#endif
}
} }
} }