summaryrefslogtreecommitdiff
path: root/SCSPactor.c
diff options
context:
space:
mode:
Diffstat (limited to 'SCSPactor.c')
-rw-r--r--SCSPactor.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/SCSPactor.c b/SCSPactor.c
index 8c2081b..61568fa 100644
--- a/SCSPactor.c
+++ b/SCSPactor.c
@@ -114,7 +114,7 @@ int DoScanLine(struct TNCINFO * TNC, char * Buff, int Len);
VOID SuspendOtherPorts(struct TNCINFO * ThisTNC);
VOID ReleaseOtherPorts(struct TNCINFO * ThisTNC);
-VOID PTCSuspendPort(struct TNCINFO * TNC);
+VOID PTCSuspendPort(struct TNCINFO * TNC, struct TNCINFO * ThisTNC);
VOID PTCReleasePort(struct TNCINFO * TNC);
int KissEncode(UCHAR * inbuff, UCHAR * outbuff, int len);
int CheckMode(struct TNCINFO * TNC);
@@ -468,6 +468,14 @@ ok:
// 100 mS Timer. May now be needed, as Poll can be called more frequently in some circumstances
+ // G7TAJ's code to record activity for stats display
+
+ if ( TNC->BusyFlags && CDBusy )
+ TNC->PortRecord->PORTCONTROL.ACTIVE += 2;
+
+ if ( TNC->PTTState )
+ TNC->PortRecord->PORTCONTROL.SENDING += 2;
+
SCSCheckRX(TNC);
SCSPoll(port);
@@ -4147,7 +4155,7 @@ VOID CloseComplete(struct TNCINFO * TNC, int Stream)
}
-VOID PTCSuspendPort(struct TNCINFO * TNC)
+VOID PTCSuspendPort(struct TNCINFO * TNC, struct TNCINFO * ThisTNC)
{
struct STREAMINFO * STREAM = &TNC->Streams[0];