Commit 1d5a461d authored by Alessandro Rubini's avatar Alessandro Rubini

wr-servo: trivial: move a line so it's clearer

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent bc172173
......@@ -253,18 +253,18 @@ int wr_servo_update(struct pp_instance *ppi)
if(!s->t1.correct || !s->t2.correct ||
!s->t3.correct || !s->t4.correct) {
errcount++;
if (errcount > 5) /* a 2-3 in a row are expected */
if (errcount > 5) { /* a 2-3 in a row are expected */
pp_error("%s: TimestampsIncorrect: %d %d %d %d\n",
__func__, s->t1.correct, s->t2.correct,
s->t3.correct, s->t4.correct);
errcount = 0;
}
return 0;
}
/* shmem lock */
wrs_shm_write(ppsi_head, WRS_SHM_WRITE_BEGIN);
errcount = 0;
s->update_count++;
got_sync = 0;
......
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