summaryrefslogtreecommitdiff
path: root/L2Code.c
diff options
context:
space:
mode:
Diffstat (limited to 'L2Code.c')
-rw-r--r--L2Code.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/L2Code.c b/L2Code.c
index 1d63949..c2953f4 100644
--- a/L2Code.c
+++ b/L2Code.c
@@ -4726,10 +4726,16 @@ int seeifInterlockneeded(struct PORTCONTROL * PORT)
int i;
int Interlock = PORT->PORTINTERLOCK;
struct TNCINFO * TNC;
+ char Cmd[64];
if (Interlock == 0)
return 0; // No locking
+ // I think we need to stop scanning here
+
+ sprintf(Cmd, "%d SCANSTOP", PORT->PORTNUMBER);
+ Rig_Command( (TRANSPORTENTRY *) -1, Cmd);
+
for (i = 1; i <= MAXBPQPORTS; i++)
{
TNC = TNCInfo[i];
@@ -4753,6 +4759,7 @@ int seeifUnlockneeded(struct _LINKTABLE * LINK)
int Interlock;
struct TNCINFO * TNC;
struct PORTCONTROL * PORT = LINK->LINKPORT;
+ char Cmd[64];
if (PORT == NULL)
return 0;
@@ -4795,6 +4802,14 @@ int seeifUnlockneeded(struct _LINKTABLE * LINK)
TNC->ReleasePortProc(TNC);
}
+ if (Interlock == 0)
+ return 0; // No locking
+
+ // I think we need to start scanning here
+
+ sprintf(Cmd, "%d SCANSTART 15", LINK->LINKPORT->PORTNUMBER);
+ Rig_Command((TRANSPORTENTRY *)-1, Cmd);
+
return 0;
}