Skip to content

Force inlining to fix delays #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Force inlining to fix delays #14

merged 1 commit into from
Jun 8, 2022

Conversation

v1nsai
Copy link

@v1nsai v1nsai commented May 6, 2021

Delays were being ignored when functions from this crate were not inlined. Turning on LTO in Cargo profile works too, but this fix works upstream without any changes required to users' Cargo.toml.

@rkarabut
Copy link
Contributor

rkarabut commented Aug 23, 2021

I don't have time to investigate this properly at the moment, but while this indeed seems to be working (until the ~4.3s delay limit is hit, triggering an integer overflow), the code fixing the said overflow in #16 somehow also works without forcing the inlining. I'd really like to know why :)

@stappersg stappersg merged commit 3b80ff7 into avr-rust:master Jun 8, 2022
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