mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 17:05:52 +00:00
* Terminal Chat: new commands "card" and "import"
This commit is contained in:
@@ -157,8 +157,11 @@ void Dispatcher::checkSend() {
|
||||
|
||||
Packet* Dispatcher::obtainNewPacket() {
|
||||
auto pkt = _mgr->allocNew(); // TODO: zero out all fields
|
||||
if (pkt == NULL) n_full_events++;
|
||||
|
||||
if (pkt == NULL) {
|
||||
n_full_events++;
|
||||
} else {
|
||||
pkt->payload_len = pkt->path_len = 0;
|
||||
}
|
||||
return pkt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user