From 26b5df1bd70f5b79f91ce8dbfaec6b1c16e7e6df Mon Sep 17 00:00:00 2001 From: "Ricardo Guzman (Richonguzman)" Date: Mon, 22 Jun 2026 22:16:14 -0400 Subject: [PATCH] update delete of star in digipeated packet --- src/digi_utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index f470a3e..12c61e4 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -43,7 +43,7 @@ extern bool backupDigiMode; namespace DIGI_Utils { String cleanPath(String path) { - String terms[] = {"WIDE1*,", "WIDE2*,"}; + String terms[] = {"WIDE1*,", "WIDE2*,", "*"}; for (String term : terms) { int index = path.indexOf(term); if (index != -1) path.remove(index, term.length()); // less memory than: tempPath.replace("*", ""); @@ -76,7 +76,8 @@ namespace DIGI_Utils { } if (ownTokenEnd == -1) return ""; - return path.substring(0, ownTokenEnd) + "*" + path.substring(ownTokenEnd); + String tempPacket = cleanPath(path.substring(0, ownTokenEnd)); + return tempPacket + "*" + path.substring(ownTokenEnd); } String buildPacket(const String& path, const String& packet, bool thirdParty, bool crossFreq) {