summaryrefslogtreecommitdiff
path: root/SerialPort.c
diff options
context:
space:
mode:
Diffstat (limited to 'SerialPort.c')
-rw-r--r--SerialPort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/SerialPort.c b/SerialPort.c
index 3cda40e..2df4ed6 100644
--- a/SerialPort.c
+++ b/SerialPort.c
@@ -770,9 +770,9 @@ VOID * SerialExtInit(EXTPORTDATA * PortEntry)
}
TNC->Port = port;
- TNC->Hardware = H_SERIAL;
-
TNC->PortRecord = PortEntry;
+ TNC->PortRecord->PORTCONTROL.HWType = TNC->Hardware = H_SERIAL;
+
if (PortEntry->PORTCONTROL.PORTCALL[0] == 0)
memcpy(TNC->NodeCall, MYNODECALL, 10);