From 4659f8b2ffe87d438708c4e71b4c7b17abe841fe Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 6 Aug 2024 10:11:50 -0400 Subject: [PATCH] mode3start --- src/digi_utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index 833727a..ee04896 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -65,7 +65,9 @@ namespace DIGI_Utils { int wide1Index = path.indexOf("WIDE1-1"); int wide2Index = path.indexOf("WIDE2-1"); - if ((wide1Index != -1 && wide2Index == -1) || (wide1Index != -1 && wide2Index != -1 && wide1Index < wide2Index) || (wide1Index == -1 && wide2Index != -1)) { + if (wide1Index != -1 && wide2Index != -1 && wide1Index < wide2Index) { + return buildPacket(path, packet, thirdParty); + } else if ((wide1Index != -1 && wide2Index == -1) || (wide1Index == -1 && wide2Index != -1)) { return buildPacket(path, packet, thirdParty); } else { return "";