summaryrefslogtreecommitdiff
path: root/HFCommon.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2023-03-16 06:52:27 +0000
committerg8bpq <john.wiseman@cantab.net>2023-03-16 06:52:27 +0000
commita792602316553910d71e00b9beba7cc419c08d89 (patch)
tree70c62daa460369c0dbbcffe2e5d02956c6a3a9b2 /HFCommon.c
parent39da8ffc5254acec7b9ce51f50b5b0e783dc7b7d (diff)
6.0.23.5523.56
Diffstat (limited to 'HFCommon.c')
-rw-r--r--HFCommon.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/HFCommon.c b/HFCommon.c
index 21b7376..0ef6145 100644
--- a/HFCommon.c
+++ b/HFCommon.c
@@ -1870,8 +1870,14 @@ int standardParams(struct TNCINFO * TNC, char * buf)
TNC->RXRadio = atoi(&buf[8]);
else if (_memicmp(buf, "TXFreq", 6) == 0) // For PTT Sets Freq mode
TNC->TXFreq = strtoll(&buf[7], NULL, 10);
- else if (_memicmp(buf, "DefaultFreq", 11) == 0) // For PTT Sets Freq mode
- TNC->DefaultFreq = strtoll(&buf[12], NULL, 10);
+ else if (_memicmp(buf, "DefaultTXFreq", 13) == 0) // Set at end of session
+ TNC->DefaultTXFreq = atof(&buf[14]);
+ else if (_memicmp(buf, "DefaultRXFreq", 13) == 0) // Set at end of session
+ TNC->DefaultRXFreq = atof(&buf[14]);
+ else if (_memicmp(buf, "ActiveTXFreq", 12) == 0) // Set at start of session
+ TNC->ActiveTXFreq = atof(&buf[13]);
+ else if (_memicmp(buf, "ActiveRXFreq", 12) == 0) // Set at start of session
+ TNC->ActiveRXFreq = atof(&buf[13]);
else if (_memicmp(buf, "PTTONHEX", 8) == 0)
{
// Hex String to use for PTT on for this port