Skip to content

Conversation

burrbull
Copy link
Member

No description provided.

@burrbull burrbull marked this pull request as ready for review January 21, 2022 06:27
src/timer.rs Outdated
@@ -351,6 +351,15 @@ where
}
}

#[inline(always)]
pub(crate) fn compute_arr_presc(freq: u32, clock: u32) -> (u16, u32) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be a const fn?

@burrbull burrbull marked this pull request as draft January 21, 2022 16:01
@burrbull burrbull marked this pull request as ready for review January 22, 2022 13:46
@burrbull
Copy link
Member Author

@therealprof Made some tests more. Works good as for me.

Copy link
Member

@therealprof therealprof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

bors r+

@bors bors bot merged commit 9928bb3 into master Jan 22, 2022
@burrbull burrbull deleted the arr-presc branch January 23, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants