Skip to content

fix pulseInLong considering overflow #3864

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
Sep 25, 2015

Conversation

facchinm
Copy link
Member

fixes #3830

adding __attribute__((optimize("O1"))) the total overhead is only 24 bytes (against +72 bytes with this implementation) (gcc 4.8.1)

For safety reasons this PR does not include this optimization

facchinm added a commit that referenced this pull request Sep 25, 2015
fix pulseInLong considering overflow
@facchinm facchinm merged commit 5304904 into arduino:master Sep 25, 2015
@ffissore ffissore modified the milestone: Release 1.6.6 Sep 30, 2015
@facchinm facchinm deleted the pulseInLongOVF branch January 4, 2017 15:39
ollie1400 pushed a commit to ollie1400/Arduino that referenced this pull request May 2, 2022
fix pulseInLong considering overflow
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.

Very incorrect timeout handling in pulseInLong
3 participants