From 063a6be4e4da2bd06ee56d7c078c03ebe75ca5db Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sun, 19 Jan 2025 15:36:35 -0500 Subject: [PATCH] Optimized CW skimmer message display. --- htdocs/lib/MessagePanel.js | 8 ++++++-- owrx/sstv.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/MessagePanel.js b/htdocs/lib/MessagePanel.js index 2b67adad..4b429960 100644 --- a/htdocs/lib/MessagePanel.js +++ b/htdocs/lib/MessagePanel.js @@ -919,14 +919,18 @@ CwSkimmerMessagePanel.prototype.pushMessage = function(msg) { var j = this.texts.findIndex(function(x) { return x.freq >= msg.freq }); if (j < 0) { // Append a new entry - this.texts.push({ freq: msg.freq, text: msg.text, ts: now }); + if (msg.text.trim().length > 0) { + this.texts.push({ freq: msg.freq, text: msg.text, ts: now }); + } } else if (this.texts[j].freq == msg.freq) { // Update existing entry this.texts[j].text = (this.texts[j].text + msg.text).slice(-64); this.texts[j].ts = now; } else { // Insert a new entry - this.texts.splice(j, 0, { freq: msg.freq, text: msg.text, ts: now }); + if (msg.text.trim().length > 0) { + this.texts.splice(j, 0, { freq: msg.freq, text: msg.text, ts: now }); + } } // Generate table body diff --git a/owrx/sstv.py b/owrx/sstv.py index 083706e6..cb84a53d 100644 --- a/owrx/sstv.py +++ b/owrx/sstv.py @@ -27,6 +27,7 @@ modeNames = { 59: "SC2 60", 60: "Scottie 1", 63: "SC2 120", + 68: "AVT 90", 76: "Scottie DX", 93: "PD 50", 94: "PD 290", @@ -51,7 +52,6 @@ modeNames = { 15: "Robot BW36B", 41: "Martin HQ1", 42: "Martin HQ2", - 68: "AVT 90", 85: "FAX480", 90: "FAST FM", 100: "Proskan J120",