Reset the ESP in case that there is no Wifi connection.
This commit is contained in:
parent
af2189a78a
commit
44c2ef4144
1 changed files with 5 additions and 1 deletions
|
@ -278,7 +278,11 @@ void wifiConnectionCheck() {
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO Was muss hier getan werden?
|
||||
#ifdef ENABLE_WATCHDOG
|
||||
// loop endless, watchdog will reset the device
|
||||
while (1 == 1) {}
|
||||
#endif
|
||||
ESP.reset();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue