1.2-legacy
geeksville 2020-04-04 18:46:19 -07:00
rodzic 2fcdc2c09f
commit d1cb45aa5d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -138,7 +138,7 @@ void MeshRadio::loop()
// into CustomRF95 // into CustomRF95
uint32_t now = millis(); uint32_t now = millis();
if (lastTxStart != 0 && (now - lastTxStart) > TX_WATCHDOG_TIMEOUT && radioIf.mode() == RHGenericDriver::RHModeTx) { if (lastTxStart != 0 && (now - lastTxStart) > TX_WATCHDOG_TIMEOUT && radioIf.mode() == RHGenericDriver::RHModeTx) {
DEBUG_MSG("ERROR! Bug! Tx packet took too long to send, forcing radio into rx mode"); DEBUG_MSG("ERROR! Bug! Tx packet took too long to send, forcing radio into rx mode\n");
radioIf.setModeRx(); radioIf.setModeRx();
if (radioIf.sendingPacket) { // There was probably a packet we were trying to send, free it if (radioIf.sendingPacket) { // There was probably a packet we were trying to send, free it
radioIf.pool.release(radioIf.sendingPacket); radioIf.pool.release(radioIf.sendingPacket);