summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2022-11-14 14:02:28 +0000
committerg8bpq <john.wiseman@cantab.net>2022-11-14 14:02:28 +0000
commitf4bc43f75d0ee3bea207e99f745fb5585b192f48 (patch)
tree35b0fe081e832b475b9c9f7f7bee2615567aca9e /cMain.c
parente3db09d2557584d2026b8801d972390507269714 (diff)
6.0.23.26
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/cMain.c b/cMain.c
index 9eca342..72b529a 100644
--- a/cMain.c
+++ b/cMain.c
@@ -1,5 +1,5 @@
/*
-Copyright 2001-2018 John Wiseman G8BPQ
+Copyright 2001-2022 John Wiseman G8BPQ
This file is part of LinBPQ/BPQ32.
@@ -45,7 +45,7 @@ void GetPortCTEXT(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, CM
int upnpInit();
void AISTimer();
void ADSBTimer();
-
+VOID SendSmartID(struct PORTCONTROL * PORT);
#include "configstructs.h"
@@ -1019,6 +1019,8 @@ BOOL Start()
PORT->Hide = PortRec->Hide;
+ PORT->SmartIDInterval = PortRec->SmartID;
+
if (PortRec->BBSFLAG) // Appl 1 no permitted - BBSFLAG=NOBBS
PORT->PERMITTEDAPPLS &= 0xfffffffe; // Clear bottom bit
@@ -1942,6 +1944,12 @@ VOID TIMERINTERRUPT()
for (i = 0; i < NUMBEROFPORTS; i++)
{
PORT->PORTTIMERCODE(PORT);
+
+ // Check Smart ID timer
+
+ if (PORT->SmartIDNeeded && PORT->SmartIDNeeded < time(NULL))
+ SendSmartID(PORT);
+
PORT = PORT->PORTPOINTER;
}