Clear out saved time stamps after setting the clock.
When we create a discontinuity in the clock time, we must avoid mixing local time stamps from before and after the jump. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
2fcac204de
commit
7421e74aca
2
clock.c
2
clock.c
|
@ -416,6 +416,8 @@ enum servo_state clock_synchronize(struct clock *c,
|
||||||
break;
|
break;
|
||||||
case SERVO_JUMP:
|
case SERVO_JUMP:
|
||||||
clock_step(c->clkid, -c->master_offset);
|
clock_step(c->clkid, -c->master_offset);
|
||||||
|
c->t1 = tmv_zero();
|
||||||
|
c->t2 = tmv_zero();
|
||||||
break;
|
break;
|
||||||
case SERVO_LOCKED:
|
case SERVO_LOCKED:
|
||||||
clock_ppb(c->clkid, -adj);
|
clock_ppb(c->clkid, -adj);
|
||||||
|
|
Loading…
Reference in New Issue