From 4e87c4411c836fc26c68f64cbc23409471faa9e9 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 28 Mar 2021 11:44:19 +0800 Subject: [PATCH] fix serious nak bug reported by @havealoha and @luxoon --- src/mesh/MeshPlugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesh/MeshPlugin.cpp b/src/mesh/MeshPlugin.cpp index 2081def6..e97836c0 100644 --- a/src/mesh/MeshPlugin.cpp +++ b/src/mesh/MeshPlugin.cpp @@ -36,6 +36,7 @@ MeshPacket *MeshPlugin::allocAckNak(Routing_Error err, NodeNum to, PacketId idFr Routing c = Routing_init_default; c.error_reason = err; + c.which_variant = Routing_error_reason_tag; // Now that we have moded sendAckNak up one level into the class heirarchy we can no longer assume we are a RoutingPlugin // So we manually call pb_encode_to_bytes and specify routing port number