From 44c2ef41446775bca69dfb7c801b155e40ccb3fa Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 9 Feb 2023 16:57:37 +0100 Subject: [PATCH] Reset the ESP in case that there is no Wifi connection. --- firmware/firmware.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 49d08f2..f73d166 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -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(); }