From 568329d3be18b747e5a617b832e628d535d2149c Mon Sep 17 00:00:00 2001 From: Mashintime Date: Tue, 7 Feb 2023 16:13:46 -0500 Subject: [PATCH] Shorter UUID for sendMessage --- gui/sock.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gui/sock.js b/gui/sock.js index f9c916f1..cb6370f6 100644 --- a/gui/sock.js +++ b/gui/sock.js @@ -542,7 +542,14 @@ exports.sendMessage = function(dxcallsign, mode, frames, data, checksum, uuid, c //data = utf8.encode(data) //socketLog.info(data) - + //shorten uuid + let uuidlast = uuid.lastIndexOf('-'); + uuidlast +=1; + if (uuidlast > 0) + { + uuid = uuid.substr(uuidlast); + //console.log("UUID shortened to: ",uuid); + } var datatype = "m" data = datatype + split_char + command + split_char + checksum + split_char + uuid + split_char + data