From dd511588a2f29328cc7141901eddfcd1ed713806 Mon Sep 17 00:00:00 2001 From: Andrew Mark Date: Tue, 19 Jan 2021 20:13:19 -0800 Subject: [PATCH] Oops, let's only try to reboot ESP32 when there's an ESP32 --- src/mesh/RadioLibInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/RadioLibInterface.cpp b/src/mesh/RadioLibInterface.cpp index f0eb53b2..f2fafef7 100644 --- a/src/mesh/RadioLibInterface.cpp +++ b/src/mesh/RadioLibInterface.cpp @@ -77,8 +77,10 @@ bool RadioLibInterface::canSendImmediately() if (busyTx && (millis() - lastTxStart > 60000)){ DEBUG_MSG("Hardware Failure! busyTx for more than 60s\n"); recordCriticalError(CriticalErrorCode_TransmitFailed); +#ifndef NO_ESP32 if (busyTx && (millis() - lastTxStart > 65000)) // After 5s more, reboot ESP.restart(); +#endif } if (busyRx) DEBUG_MSG("Can not send yet, busyRx\n");