Flush filter when PPS refclock lost sync

This commit is contained in:
Miroslav Lichvar 2009-11-30 17:03:04 +01:00
parent e63c51c6c0
commit 19651dc767

View file

@ -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",
second, is_synchronised, distance);
#endif
/* Drop also all stored samples */
filter_reset(&instance->filter);
return 0;
}