summaryrefslogtreecommitdiff
path: root/Cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'Cmd.c')
-rw-r--r--Cmd.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/Cmd.c b/Cmd.c
index f6c3fc1..2157939 100644
--- a/Cmd.c
+++ b/Cmd.c
@@ -4064,6 +4064,24 @@ noFlip1:
checkattachandcall:
+ // If set freq on attach is defined, do it
+
+ if (TNC && TNC->ActiveRXFreq && TNC->RXRadio)
+ {
+ char Msg[128];
+
+ sprintf(Msg, "R%d %f", TNC->RXRadio, TNC->ActiveRXFreq);
+ Rig_Command(-1, Msg);
+ }
+
+ if (TNC && TNC->ActiveTXFreq && TNC->TXRadio && TNC->TXRadio != TNC->RXRadio)
+ {
+ char Msg[128];
+
+ sprintf(Msg, "R%d %f", TNC->TXRadio, TNC->ActiveTXFreq);
+ Rig_Command(-1, Msg);
+ }
+
if (ptr)
{
// we have a call to connect to
@@ -4528,7 +4546,15 @@ VOID InnerCommandHandler(TRANSPORTENTRY * Session, struct DATAMESSAGE * Buffer)
// SendUIModeFrame(Session, (PMESSAGE)Buffer, Session->UNPROTO);
ReleaseBuffer((UINT *)Buffer); // Not using buffer for reply
-
+
+ // Assume we don't allow multiple lines in buffer with UI
+
+ if (Session->PARTCMDBUFFER)
+ {
+ Buffer = Session->PARTCMDBUFFER;
+ ReleaseBuffer((UINT *)Buffer); // Not using buffer for reply
+ Session->PARTCMDBUFFER = NULL;
+ }
return;
}