mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-09-11 03:35:28 +02:00
fix(wintest): replace unreliable band-limited AUTO sked mode detection with explicit SSB/CW selection and show exact KST callsigns in the timeline and fixed (#50 ensured Filter-Reset)
This commit is contained in:
@@ -883,23 +883,29 @@ public class ChatController implements ThreadStatusCallback, PstRotatorEventList
|
||||
);
|
||||
}
|
||||
|
||||
String modeText =
|
||||
String configuredMode =
|
||||
chatPreferences.getLogsynch_wintestSkedMode();
|
||||
|
||||
int modeOverride = -1;
|
||||
|
||||
if ("CW".equalsIgnoreCase(modeText)) {
|
||||
modeOverride = 0;
|
||||
} else if ("SSB".equalsIgnoreCase(modeText)) {
|
||||
modeOverride = 1;
|
||||
}
|
||||
/*
|
||||
* Win-Test mode IDs:
|
||||
* 0 = CW
|
||||
* 1 = SSB
|
||||
*
|
||||
* SSB is the safe fallback for missing or obsolete settings.
|
||||
* The former AUTO mode was frequency-based and could not produce
|
||||
* reliable results on every supported VHF, UHF and SHF band.
|
||||
*/
|
||||
int winTestMode =
|
||||
"CW".equalsIgnoreCase(configuredMode)
|
||||
? 0
|
||||
: 1;
|
||||
|
||||
sender.pushSkedToWinTest(
|
||||
sked,
|
||||
winTestCallsign,
|
||||
frequencyKHz,
|
||||
notes,
|
||||
modeOverride
|
||||
winTestMode
|
||||
);
|
||||
|
||||
} catch (Exception exception) {
|
||||
|
||||
Reference in New Issue
Block a user