Skip to content

Commit

Permalink
decoder: fix double promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
via committed Aug 10, 2024
1 parent cceda01 commit 077d546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void even_tooth_trigger_update_rpm(struct decoder *d) {
}

/* If we pass 150% of a inter-tooth delay, lose sync */
d->expiration = d->times[0] + (timeval_t)(diff * 1.5);
d->expiration = d->times[0] + (timeval_t)(diff * 1.5f);
set_expire_event(d->expiration);
}

Expand Down

0 comments on commit 077d546

Please sign in to comment.