Skip to content

Commit

Permalink
Fix period of NTP broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Jan 8, 2023
1 parent adbfa7e commit 02618ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hc_ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 02618ee

Please sign in to comment.