Skip to content

Changed micros() to work in interrupts #1388

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

Closed
wants to merge 1 commit into from
Closed

Changed micros() to work in interrupts #1388

wants to merge 1 commit into from

Conversation

stimmer
Copy link

@stimmer stimmer commented Apr 27, 2013

This is a possible fix for Issue #1301 where micros() can be a millisecond out when called in an interrupt.

I have given this fix several hours of testing in both interrupt and non-interrupt code and it has not given an incorrect result so far.

See http://arduino.cc/forum/index.php/topic,162787.0.html

cmaglie added a commit that referenced this pull request May 3, 2013
@cmaglie
Copy link
Member

cmaglie commented May 3, 2013

Merged.
Thank you.

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.

2 participants