mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 21:51:46 +00:00
Merge pull request #3787 from GUVWAF/ccToPhoneErr
Check if packet is not released before CC to phone
This commit is contained in:
commit
e9ebdfeff2
@ -257,7 +257,7 @@ void MeshService::sendToMesh(meshtastic_MeshPacket *p, RxSource src, bool ccToPh
|
|||||||
LOG_DEBUG("Can't send status to phone");
|
LOG_DEBUG("Can't send status to phone");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ccToPhone) {
|
if (res == ERRNO_OK && ccToPhone) { // Check if p is not released in case it couldn't be sent
|
||||||
sendToPhone(packetPool.allocCopy(*p));
|
sendToPhone(packetPool.allocCopy(*p));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user