Commit c92b4290 authored by Alessandro Rubini's avatar Alessandro Rubini

wr-servo: fix a wrong state change (with no effect)

After changing the nsec counter, the next state should be SYNC_PHASE,
not SYNC_NSEC.  This was a mistake when making order in the wr-servo
file, initially, but has no effect as we move to a later step anyways
if offset_hw.nanoseconds is already 0.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 3165143f
......@@ -343,7 +343,7 @@ int wr_servo_update(struct pp_instance *ppi)
case WR_SYNC_NSEC:
wrp->ops->adjust_counters(0, ts_offset_hw.nanoseconds);
s->next_state = WR_SYNC_NSEC;
s->next_state = WR_SYNC_PHASE;
s->state = WR_WAIT_SYNC_IDLE;
s->last_tics = tics;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment