* startSendRaw() now returns false if fail

Этот коммит содержится в:
Scott Powell
2025-05-12 17:26:44 +10:00
родитель dd16197eae
Коммит b08436eba7
6 изменённых файлов: 27 добавлений и 13 удалений
+10 -1
Просмотреть файл
@@ -234,7 +234,16 @@ void Dispatcher::checkSend() {
uint32_t max_airtime = _radio->getEstAirtimeFor(len)*3/2;
outbound_start = _ms->getMillis();
_radio->startSendRaw(raw, len);
bool success = _radio->startSendRaw(raw, len);
if (!success) {
MESH_DEBUG_PRINTLN("%s Dispatcher::loop(): ERROR: send start failed!", getLogDateTime());
logTxFail(outbound, outbound->getRawLength());
releasePacket(outbound); // return to pool
outbound = NULL;
return;
}
outbound_expiry = futureMillis(max_airtime);
#if MESH_PACKET_LOGGING