Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

enable CHANGE mode for attachInterrupt() #69

Merged
merged 1 commit into from
Apr 27, 2020
Merged

Conversation

f-jiang
Copy link
Contributor

@f-jiang f-jiang commented Apr 26, 2020

Previously, calling attachInterrupt() with mode set to CHANGE would produce the same behaviour as RISING. This revision enables both rising and falling edge detection for CHANGE.

Fixes #68

@facchinm
Copy link
Member

Thanks for spotting this!

@facchinm facchinm merged commit 49ca91d into arduino:master Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

attachInterrupt() fails to detect falling edges when mode is set to CHANGE
2 participants