From 02618ee580abed7accdea6d20db0ec808a6eb120 Mon Sep 17 00:00:00 2001 From: Pascal Martin Date: Sun, 8 Jan 2023 00:03:31 -0800 Subject: [PATCH] Fix period of NTP broadcast --- hc_ntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc_ntp.c b/hc_ntp.c index eff3b74..275fd37 100644 --- a/hc_ntp.c +++ b/hc_ntp.c @@ -477,7 +477,7 @@ void hc_ntp_periodic (const struct timeval *wakeup) { if (hc_nmea_active()) { if (hc_clock_synchronized() && - (wakeup->tv_sec > latestBroadcast + hc_ntp_period)) { + (wakeup->tv_sec >= latestBroadcast + hc_ntp_period)) { struct timeval timestamp; int dispersion = hc_clock_dispersion();