diff options
| author | g8bpq <john.wiseman@cantab.net> | 2022-11-14 14:02:28 +0000 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2022-11-14 14:02:28 +0000 |
| commit | f4bc43f75d0ee3bea207e99f745fb5585b192f48 (patch) | |
| tree | 35b0fe081e832b475b9c9f7f7bee2615567aca9e /cMain.c | |
| parent | e3db09d2557584d2026b8801d972390507269714 (diff) | |
6.0.23.26
Diffstat (limited to 'cMain.c')
| -rw-r--r-- | cMain.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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;
}
|
