summaryrefslogtreecommitdiff
path: root/HSMODEM.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
committerg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
commit75b5bcc9a97b38c6c0c210bf14fabad9cadf704a (patch)
tree913d37a3946a40e9694833ed36fd5a8e02a23d42 /HSMODEM.c
parenta21121fbfce48307740e6ade5f4f16531501b053 (diff)
6.0.23.7623.77
Diffstat (limited to 'HSMODEM.c')
-rw-r--r--HSMODEM.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/HSMODEM.c b/HSMODEM.c
index 0529e4e..5362b87 100644
--- a/HSMODEM.c
+++ b/HSMODEM.c
@@ -115,7 +115,7 @@ struct HSMODEMINFO
int KillTNC(struct TNCINFO * TNC);
int RestartTNC(struct TNCINFO * TNC);
-int (WINAPI FAR *GetModuleFileNameExPtr)();
+extern int (WINAPI FAR *GetModuleFileNameExPtr)();
extern int (WINAPI FAR *EnumProcessesPtr)();
#include "bpq32.h"
@@ -283,7 +283,7 @@ static int ProcessLine(char * buf, int Port)
return (TRUE);
}
-char * Config;
+static char * Config;
static char * ptr1, * ptr2;
int HSMODEMGetLine(char * buf)
@@ -413,7 +413,15 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff)
// 100 mS Timer. May now be needed, as Poll can be called more frequently in some circumstances
- if (TNC->CONNECTED)
+ // 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;
+
+ if (TNC->CONNECTED)
{
TNC->CONNECTED--;
@@ -890,7 +898,7 @@ VOID HSMODEMReleaseTNC(struct TNCINFO * TNC)
}
-VOID HSMODEMSuspendPort(struct TNCINFO * TNC)
+VOID HSMODEMSuspendPort(struct TNCINFO * TNC, struct TNCINFO * ThisTNC)
{
HSMODEMSendCommand(TNC, "CONOK OFF\r");
}