From 9ce216c2eeacb1646bdaab62a25b070f33d44a26 Mon Sep 17 00:00:00 2001 From: Matthew Chambers Date: Sat, 21 May 2022 17:19:15 -0500 Subject: [PATCH] CQ POTA and early catching of POTAs --- package.nw/lib/pota.js | 5 ----- package.nw/lib/roster/processRosterFiltering.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.nw/lib/pota.js b/package.nw/lib/pota.js index 3166c80e..6e4f769d 100644 --- a/package.nw/lib/pota.js +++ b/package.nw/lib/pota.js @@ -5,11 +5,6 @@ var g_potaPlaces = null; var g_potaSpots = null; -const g_NotaAPota = { - refrence: null, - name: null -} - function ingestPotaPlaces(buffer) { try diff --git a/package.nw/lib/roster/processRosterFiltering.js b/package.nw/lib/roster/processRosterFiltering.js index 3530741a..513caaee 100644 --- a/package.nw/lib/roster/processRosterFiltering.js +++ b/package.nw/lib/roster/processRosterFiltering.js @@ -45,6 +45,16 @@ function processRosterFiltering(callRoster, rosterSettings) entry.tx = false; continue; } + if (entry.DXcall == "CQ POTA" && huntPOTA.checked == true) + { + entry.tx = true; + if (callObj.pota == null) + { + callObj.pota.reference = "?-????"; + callObj.pota.name = "Unknown Park"; + } + continue; + } if (callObj.ituza in g_blockedITUz) { entry.tx = false;