Revert "Add Routing_Error_NONE"

This reverts commit e1985fa0f9.
This commit is contained in:
Jonathan Bennett
2024-08-13 09:15:20 -05:00
parent bcd77c4523
commit f3fa8daedf
5 changed files with 19 additions and 20 deletions

View File

@@ -1105,8 +1105,7 @@ ProcessMessage CannedMessageModule::handleReceived(const meshtastic_MeshPacket &
this->incoming = service->getNodenumFromRequestId(mp.decoded.request_id);
meshtastic_Routing decoded = meshtastic_Routing_init_default;
pb_decode_from_bytes(mp.decoded.payload.bytes, mp.decoded.payload.size, meshtastic_Routing_fields, &decoded);
this->ack = decoded.error_reason == meshtastic_Routing_Error_NONE ||
decoded.error_reason == meshtastic_Routing_Error_NONE_PKI;
this->ack = decoded.error_reason == meshtastic_Routing_Error_NONE;
waitingForAck = false; // No longer want routing packets
this->notifyObservers(&e);
// run the next time 2 seconds later