Merge branch 'wspr-bug-fix' into 'master'

WSPR bug fix

See merge request gridtracker.org/gridtracker!253

If this is changing anything in the UI or operational behavior, please prepare to update the wiki!
merge-requests/237/merge v1.22.1122
T Loomis 2022-11-22 01:20:27 +00:00
commit 79c1f8bc76
6 zmienionych plików z 54 dodań i 52 usunięć

4
debian/changelog vendored
Wyświetl plik

@ -1,3 +1,7 @@
gridtracker (1.22.1122) unstable; urgency=low
- WSPR decoding corrupting QSO data fix!
-- Tag Loomis <n0ttl@gridtracker.org> Tue, 22 Nov 2022 00:00:00 -0000
gridtracker (1.22.1119) unstable; urgency=low gridtracker (1.22.1119) unstable; urgency=low
- New Internationalization support (Settings → General → Language) - New Internationalization support (Settings → General → Language)
-- English, 简体中文, 繁體中文 with German and Spanish in the works -- English, 简体中文, 繁體中文 with German and Spanish in the works

Wyświetl plik

@ -40,6 +40,8 @@ DESTDIR=${RPM_BUILD_ROOT} make clean
%license %{_docdir}/%{name}/ %license %{_docdir}/%{name}/
%changelog %changelog
* Tue Nov 22 2022 Tag Loomis <n0ttl@gridtracker.org> - 1.22.1122-1
- WSPR decoding corrupting QSO data fix!
* Sat Nov 19 2022 Tag Loomis <n0ttl@gridtracker.org> - 1.22.1119-1 * Sat Nov 19 2022 Tag Loomis <n0ttl@gridtracker.org> - 1.22.1119-1
- New Internationalization support (Settings → General → Language) - New Internationalization support (Settings → General → Language)
-- English, 简体中文, 繁體中文 with German and Spanish in the works -- English, 简体中文, 繁體中文 with German and Spanish in the works

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -7,7 +7,6 @@ var gtVersion = parseInt(gtVersionStr.replace(/\./g, ""));
var gtBeta = pjson.betaVersion; var gtBeta = pjson.betaVersion;
var g_startVersion = 0; var g_startVersion = 0;
var g_readInternalQso = true;
if (typeof localStorage.currentVersion != "undefined") if (typeof localStorage.currentVersion != "undefined")
{ {
g_startVersion = localStorage.currentVersion; g_startVersion = localStorage.currentVersion;
@ -18,14 +17,6 @@ if (typeof localStorage.currentVersion == "undefined" || localStorage.currentVer
localStorage.currentVersion = String(gtVersion); localStorage.currentVersion = String(gtVersion);
var gui = require("nw.gui"); var gui = require("nw.gui");
gui.App.clearCache(); gui.App.clearCache();
// If the version changed, the interanl qso file is possibly out of date so don't read it
// 1221010 introduced "|"s in DXCC, CQ and ITU g_tracker so older data is no longer valid
// update this number if anything in the internal_qso format has changed
if (gtVersion < 1221010)
{
g_readInternalQso = false;
}
} }
var vers = String(gtVersion); var vers = String(gtVersion);
@ -81,7 +72,11 @@ var g_legendColors = {};
var g_adifLogSettings = {}; var g_adifLogSettings = {};
var g_msgSettings = {}; var g_msgSettings = {};
var g_receptionSettings = {}; var g_receptionSettings = {};
var g_receptionReports = {}; var g_receptionReports = {
lastDownloadTimeSec: 0,
lastSequenceNumber: "0",
spots: {}
};
var g_N1MMSettings = {}; var g_N1MMSettings = {};
var g_log4OMSettings = {}; var g_log4OMSettings = {};
var g_dxkLogSettings = {}; var g_dxkLogSettings = {};
@ -7659,19 +7654,10 @@ function handleWsjtxWSPR(newMessage)
addDeDx( addDeDx(
newMessage.Grid, newMessage.Grid,
newMessage.Callsign, newMessage.Callsign,
false,
false,
false,
"-", "-",
Number(newMessage.SR), Number(newMessage.SR),
timeNowSec(), timeNowSec(),
"Pwr:" + "Pwr:" + newMessage.Power + " Freq:" + Number(newMessage.Frequency / 1000).formatMhz(3, 3) + " Delta:" + Number(newMessage.DT).toFixed(2) + " Drift:" +
newMessage.Power +
" Freq:" +
Number(newMessage.Frequency / 1000).formatMhz(3, 3) +
" Delta:" +
Number(newMessage.DT).toFixed(2) +
" Drift:" +
newMessage.Drift, newMessage.Drift,
"WSPR", "WSPR",
Number(newMessage.Frequency / 1000000).formatBand(), Number(newMessage.Frequency / 1000000).formatBand(),
@ -15684,51 +15670,61 @@ function mediaCheck()
try try
{ {
if (fs.existsSync(g_NWappData + "internal_qso.json") && g_readInternalQso) if (fs.existsSync(g_NWappData + "internal_qso.json"))
{ {
var data = JSON.parse(fs.readFileSync(g_NWappData + "internal_qso.json")); var data = JSON.parse(fs.readFileSync(g_NWappData + "internal_qso.json"));
g_tracker = data.tracker; if (g_startVersion == data.version)
if (typeof g_tracker.worked.px == "undefined")
{ {
g_tracker.worked.px = {}; g_tracker = data.tracker;
g_tracker.confirmed.px = {};
}
if (typeof g_tracker.worked.pota == "undefined") if (typeof g_tracker.worked.px == "undefined")
{
g_tracker.worked.pota = {};
g_tracker.confirmed.pota = {};
}
g_QSOhash = data.g_QSOhash;
for (var i in g_QSOhash)
{
if (typeof g_QSOhash[i].px == "undefined" || g_QSOhash[i].px == null)
{ {
if (g_QSOhash[i].dxcc != -1) g_tracker.worked.px = {};
{ g_tracker.confirmed.px = {};
g_QSOhash[i].px = getWpx(g_QSOhash[i].DEcall);
}
else
{
g_QSOhash[i].px = null;
}
} }
if (typeof g_QSOhash[i].pota == "undefined" || g_QSOhash[i].pota == null) if (typeof g_tracker.worked.pota == "undefined")
{ {
g_QSOhash[i].pota = []; g_tracker.worked.pota = {};
g_tracker.confirmed.pota = {};
} }
g_QSOcount++; g_QSOhash = data.g_QSOhash;
if (g_QSOhash[i].confirmed) g_QSLcount++;
}
for (var i in g_QSOhash)
{
if (typeof g_QSOhash[i].px == "undefined" || g_QSOhash[i].px == null)
{
if (g_QSOhash[i].dxcc != -1)
{
g_QSOhash[i].px = getWpx(g_QSOhash[i].DEcall);
}
else
{
g_QSOhash[i].px = null;
}
}
if (typeof g_QSOhash[i].pota == "undefined" || g_QSOhash[i].pota == null)
{
g_QSOhash[i].pota = [];
}
g_QSOcount++;
if (g_QSOhash[i].confirmed) g_QSLcount++;
}
}
else
{
clearLogFilesAndCounts();
}
fs.unlinkSync(g_NWappData + "internal_qso.json"); fs.unlinkSync(g_NWappData + "internal_qso.json");
} }
else
{
clearLogFilesAndCounts();
}
loadReceptionReports(); loadReceptionReports();
} }
catch (e) catch (e)

Wyświetl plik

@ -1,7 +1,7 @@
{ {
"name": "GridTracker", "name": "GridTracker",
"product_string_do_not_use": "gridtracker", "product_string_do_not_use": "gridtracker",
"version": "1.22.1119", "version": "1.22.1122",
"betaVersion": "", "betaVersion": "",
"description": "GridTracker, an amateur radio companion", "description": "GridTracker, an amateur radio companion",
"author": "GridTracker.org", "author": "GridTracker.org",