Oops, let's only try to reboot ESP32 when there's an ESP32

1.2-legacy
Andrew Mark 2021-01-19 20:13:19 -08:00
rodzic 79dad8ec8c
commit dd511588a2
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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");