From 7a61c594e1bf9fd62e156d3d8db772fe7c4bfd03 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 28 Dec 2023 10:31:09 +0000 Subject: New upstream version 6.0.24.25 --- RigControl.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'RigControl.c') diff --git a/RigControl.c b/RigControl.c index 0e56d6e..b7e22d1 100644 --- a/RigControl.c +++ b/RigControl.c @@ -1142,7 +1142,6 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR return FALSE; } - // Build a ScanEntry in the buffer FreqPtr = (struct ScanEntry *)buffptr->Data; @@ -1277,8 +1276,6 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR } *(CmdPtr++) = 0xFD; - - *(CmdPtr) = 0; Len = (int)(CmdPtr - (char *)&buffptr[30]); @@ -1325,7 +1322,9 @@ int Rig_CommandEx(struct RIGPORTINFO * PORT, struct RIGINFO * RIG, TRANSPORTENTR FreqPtr[0].Cmd1Len = Len; // for ICOM C_Q_ADD(&RIG->BPQtoRADIO_Q, buffptr); - return TRUE; + + sprintf(Command, "Ok\r"); + return FALSE; } if (_memicmp(FreqString, "Chan", 4) == 0) @@ -2203,7 +2202,7 @@ DllExport BOOL APIENTRY Rig_Init() memset(&RIGTNC, 0, sizeof(struct TNCINFO)); - TNCInfo[40] = TNC; + TNCInfo[70] = TNC; // Get config info @@ -2229,7 +2228,7 @@ DllExport BOOL APIENTRY Rig_Init() #ifndef LINBPQ - TNC->Port = 40; + TNC->Port = 70; CreatePactorWindow(TNC, "RIGCONTROL", "RigControl", 10, PacWndProc, 550, NeedRig * 20 + 60, NULL); hDlg = TNC->hDlg; -- cgit v1.2.3