mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* Terminal Chat: new commands "card" and "import"
This commit is contained in:
parent
e877b135e8
commit
33bee48d38
3 changed files with 50 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue