fix packet queue full (#6292)

This commit is contained in:
Manuel
2025-03-11 18:59:44 -05:00
committed by GitHub
parent f4c79530ec
commit ec59f7d7dd
+3 -1
View File
@@ -89,6 +89,7 @@ bool PacketAPI::receivePacket(void)
bool PacketAPI::sendPacket(void) bool PacketAPI::sendPacket(void)
{ {
if (server->available()) {
// fill dummy buffer; we don't use it, we directly send the fromRadio structure // fill dummy buffer; we don't use it, we directly send the fromRadio structure
uint32_t len = getFromRadio(txBuf); uint32_t len = getFromRadio(txBuf);
if (len != 0) { if (len != 0) {
@@ -99,7 +100,8 @@ bool PacketAPI::sendPacket(void)
LOG_ERROR("send queue full"); LOG_ERROR("send queue full");
} }
return result; return result;
} else }
}
return false; return false;
} }