Commit 2ceb9ec9 authored by Alessandro Rubini's avatar Alessandro Rubini

spll_external: use time_after(), not a comparison

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ad9413fe
......@@ -149,7 +149,7 @@ void external_align_fsm(volatile struct spll_external_state *s)
break;
case ALIGN_STATE_WAIT_CSYNC:
if(timer_get_tics() >= s->align_timer) {
if(time_after_eq(timer_get_tics(), s->align_timer)) {
s->align_state = ALIGN_STATE_START_ALIGNMENT;
s->align_shift = 0;
TRACE_DEV("EXT: CSync complete.\n");
......
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