Add Routing_Error_NONE

This commit is contained in:
Jonathan Bennett
2024-08-12 23:39:45 -05:00
parent de1ca094f6
commit e1985fa0f9
5 changed files with 20 additions and 19 deletions

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));
}
}