mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:15:07 -05:00
Flush filter when PPS refclock lost sync
This commit is contained in:
@@ -324,6 +324,8 @@ RCL_AddPulse(RCL_Instance instance, struct timeval *pulse_time, double second)
|
|||||||
LOG(LOGS_INFO, LOGF_Refclock, "refclock pulse dropped second=%.9f sync=%d dist=%.9f",
|
LOG(LOGS_INFO, LOGF_Refclock, "refclock pulse dropped second=%.9f sync=%d dist=%.9f",
|
||||||
second, is_synchronised, distance);
|
second, is_synchronised, distance);
|
||||||
#endif
|
#endif
|
||||||
|
/* Drop also all stored samples */
|
||||||
|
filter_reset(&instance->filter);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user