Skip to content

Port B interrupt fixes #66

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 3 commits into from
Jul 18, 2021
Merged

Port B interrupt fixes #66

merged 3 commits into from
Jul 18, 2021

Conversation

Donkie
Copy link
Contributor

@Donkie Donkie commented Jul 4, 2021

A code bug seems to have snuck into line 225, causing it to read Port A's INTF register when it should've actually read Port B. Updated line 213 similarly for clarity.

Also, fixes so that if it were a Port B pin that triggered the interrupt, the appropriate INTCAP register will be read. Previously, only the Port A INTCAP register was always read.

@ladyada ladyada requested a review from caternuson July 6, 2021 19:25
@caternuson
Copy link
Contributor

Thanks for spotting that. That does appear to be a misplaced parans. Also good catch on the INTCAP clearing.

Do you know how to run clang-format so the CI will pass?

@caternuson caternuson self-assigned this Jul 13, 2021
@Donkie
Copy link
Contributor Author

Donkie commented Jul 17, 2021

Sorry for the delay, ran the formatter now @caternuson

@caternuson
Copy link
Contributor

Awesome. Thanks for the fixes!

@caternuson caternuson merged commit 0497501 into adafruit:master Jul 18, 2021
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