mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
log error when packet queue is full
This commit is contained in:
parent
f0fa598e30
commit
c5d7424ca3
@ -83,7 +83,11 @@ bool PacketAPI::sendPacket(void)
|
||||
// if (typeid(*server) == typeid(MeshPacketServer))
|
||||
// return dynamic_cast<MeshPacketServer*>(server)->sendPacket(fromRadioScratch);
|
||||
// else
|
||||
return server->sendPacket(DataPacket<meshtastic_FromRadio>(id, fromRadioScratch));
|
||||
bool result = server->sendPacket(DataPacket<meshtastic_FromRadio>(id, fromRadioScratch));
|
||||
if (!result) {
|
||||
LOG_ERROR("send queue full");
|
||||
}
|
||||
return result;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user