sforkowany z mirror/meshtastic-firmware
Oops, let's only try to reboot ESP32 when there's an ESP32
rodzic
79dad8ec8c
commit
dd511588a2
|
@ -77,8 +77,10 @@ bool RadioLibInterface::canSendImmediately()
|
||||||
if (busyTx && (millis() - lastTxStart > 60000)){
|
if (busyTx && (millis() - lastTxStart > 60000)){
|
||||||
DEBUG_MSG("Hardware Failure! busyTx for more than 60s\n");
|
DEBUG_MSG("Hardware Failure! busyTx for more than 60s\n");
|
||||||
recordCriticalError(CriticalErrorCode_TransmitFailed);
|
recordCriticalError(CriticalErrorCode_TransmitFailed);
|
||||||
|
#ifndef NO_ESP32
|
||||||
if (busyTx && (millis() - lastTxStart > 65000)) // After 5s more, reboot
|
if (busyTx && (millis() - lastTxStart > 65000)) // After 5s more, reboot
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (busyRx)
|
if (busyRx)
|
||||||
DEBUG_MSG("Can not send yet, busyRx\n");
|
DEBUG_MSG("Can not send yet, busyRx\n");
|
||||||
|
|
Ładowanie…
Reference in New Issue