summaryrefslogtreecommitdiff
path: root/APRSCode.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2022-10-03 15:55:07 +0100
committerg8bpq <john.wiseman@cantab.net>2022-10-03 15:55:07 +0100
commit4a4271cb07f8c69d4e064a2ef5ccc6c400b4f957 (patch)
treeeab5d58acc3fadf36f1878caeb776dbea9d2069b /APRSCode.c
parent9d98903fccef714f6ff788097a8d66282fc2800d (diff)
6.0.23.2123.22
Diffstat (limited to 'APRSCode.c')
-rw-r--r--APRSCode.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/APRSCode.c b/APRSCode.c
index b9cd79a..9fb7b6a 100644
--- a/APRSCode.c
+++ b/APRSCode.c
@@ -1047,20 +1047,24 @@ VOID APRSClose()
#endif
}
+time_t lastSecTimer = 0;
+
+
Dll VOID APIENTRY Poll_APRS()
{
- SecTimer--;
+ time_t Now = time(NULL);
- if (SecTimer == 0)
+ if (lastSecTimer != Now)
{
- SecTimer = 10;
+ lastSecTimer = Now;
+
DoSecTimer();
MinTimer--;
if (MinTimer == 0)
{
- MinTimer = 10;
+ MinTimer = 60;
DoMinTimer();
}
}