diff options
| author | g8bpq <john.wiseman@cantab.net> | 2023-03-16 06:52:27 +0000 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2023-03-16 06:52:27 +0000 |
| commit | a792602316553910d71e00b9beba7cc419c08d89 (patch) | |
| tree | 70c62daa460369c0dbbcffe2e5d02956c6a3a9b2 /TNCEmulators.c | |
| parent | 39da8ffc5254acec7b9ce51f50b5b0e783dc7b7d (diff) | |
6.0.23.5523.56
Diffstat (limited to 'TNCEmulators.c')
| -rw-r--r-- | TNCEmulators.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/TNCEmulators.c b/TNCEmulators.c index 7497419..a4b85c1 100644 --- a/TNCEmulators.c +++ b/TNCEmulators.c @@ -2224,16 +2224,27 @@ VOID DOMONITORING(int NeedTrace) BOOL SaveMTX = MTX;
BOOL SaveMCOM = MCOM;
BOOL SaveMUI = MUIONLY;
+ int BPQStream = 0;
if (NeedTrace)
Tracebit = 0x80;
- if (TNC->CONOK)
- SetAppl(TNC->BPQPort, TNC->APPLFLAGS | Tracebit, TNC->APPLICATION);
- else
- SetAppl(TNC->BPQPort, TNC->APPLFLAGS | Tracebit, 0);
+ if (TNC->Channels[0])
+ BPQStream = TNC->Channels[0]->BPQStream;
+ else if (TNC->TNC2Stream[0])
+ BPQStream = TNC->TNC2Stream[0]->BPQPort;
+ else if (TNC->BPQPort)
+ BPQStream = TNC->BPQPort;
+
+ if (BPQStream)
+ {
+ if (TNC->CONOK)
+ SetAppl(BPQStream, TNC->APPLFLAGS | Tracebit, TNC->APPLICATION);
+ else
+ SetAppl(BPQStream, TNC->APPLFLAGS | Tracebit, 0);
+ }
- Stamp = GetRaw(TNC->BPQPort, (char *)&MONITORDATA, &len, &count);
+ Stamp = GetRaw(BPQStream, (char *)&MONITORDATA, &len, &count);
if (len == 0)
return;
|
