mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-31 08:54:28 +00:00
Oops, let's only try to reboot ESP32 when there's an ESP32
This commit is contained in:
parent
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user