summaryrefslogtreecommitdiff
path: root/APRSCode.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 /APRSCode.c
parente3db09d2557584d2026b8801d972390507269714 (diff)
6.0.23.26
Diffstat (limited to 'APRSCode.c')
-rw-r--r--APRSCode.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/APRSCode.c b/APRSCode.c
index f25ff5f..f98e8fe 100644
--- a/APRSCode.c
+++ b/APRSCode.c
@@ -1,5 +1,5 @@
/*
-Copyright 2001-2018 John Wiseman G8BPQ
+Copyright 2001-2022 John Wiseman G8BPQ
This file is part of LinBPQ/BPQ32.
@@ -1285,8 +1285,17 @@ Dll VOID APIENTRY Poll_APRS()
memcpy(Buffer, Orig, Orig->LENGTH);
Buffer->PORT = toPort;
PORT = GetPortTableEntryFromPortNum(toPort);
+
if (PORT)
+ {
+ if (PORT->SmartIDInterval && PORT->SmartIDNeeded == 0)
+ {
+ // Using Smart ID, but none scheduled
+
+ PORT->SmartIDNeeded = time(NULL) + PORT->SmartIDInterval;
+ }
PUT_ON_PORT_Q(PORT, Buffer);
+ }
else
ReleaseBuffer(Buffer);
}