summaryrefslogtreecommitdiff
path: root/SCSPactor.c
diff options
context:
space:
mode:
Diffstat (limited to 'SCSPactor.c')
-rw-r--r--SCSPactor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/SCSPactor.c b/SCSPactor.c
index bca138a..5a6de7a 100644
--- a/SCSPactor.c
+++ b/SCSPactor.c
@@ -854,7 +854,8 @@ void * SCSExtInit(EXTPORTDATA * PortEntry)
}
TNC->Port = port;
- TNC->Hardware = H_SCS;
+ TNC->PortRecord = PortEntry;
+ TNC->PortRecord->PORTCONTROL.HWType = TNC->Hardware = H_SCS;
OpenLogFile(TNC->Port);
CloseLogFile(TNC->Port);
@@ -885,8 +886,6 @@ void * SCSExtInit(EXTPORTDATA * PortEntry)
PortEntry->PERMITGATEWAY = TRUE; // Can change ax.25 call on each stream
PortEntry->SCANCAPABILITIES = CONLOCK; // Scan Control 3 stage/conlock
- TNC->PortRecord = PortEntry;
-
if (PortEntry->PORTCONTROL.PORTINTERLOCK && TNC->RXRadio == 0 && TNC->TXRadio == 0)
TNC->RXRadio = TNC->TXRadio = PortEntry->PORTCONTROL.PORTINTERLOCK;