Add Routing_Error_NONE

This commit is contained in:
Jonathan Bennett committed 2024-08-13 18:45:40 -05:00
1 parent 754db3f2bc
commit 308c0a6bb8
5 files changed
+20 -19

No files matched your search

+2 -1
View File
@@ -253,7 +253,8 @@ void MeshService::sendToMesh(meshtastic_MeshPacket *p, RxSource src, bool ccToPh
LOG_DEBUG("Can't send status to phone");
}
if (res == ERRNO_OK && ccToPhone) { // Check if p is not released in case it couldn't be sent
if ((res == ERRNO_OK || res == meshtastic_Routing_Error_NONE_PKI) &&
ccToPhone) { // Check if p is not released in case it couldn't be sent
sendToPhone(packetPool.allocCopy(*p));
}
}