Skip to content
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

enum interrupts conflict with void interrupts #18

Open
pici opened this issue Nov 11, 2018 · 0 comments
Open

enum interrupts conflict with void interrupts #18

pici opened this issue Nov 11, 2018 · 0 comments
Labels

Comments

@pici
Copy link

pici commented Nov 11, 2018

i used your lib with TI CC1350 CC1310.
I couldn't compile because enum interrupts {...} was conflicting with core function void interrupts().
To avoid further conflicts may be it is better to rename enum interrupts to mpu_interrupts.
After following changes it worked for me:
// change in MPU9255.h:
// //interrupt pin settings
// enum interrupts {...}
// to
// enum mpu_interrupts {...}
//
// and in and MPU9255_Interrupts.cpp:
// enable_interrupt_output(interrupts selected_interrupt)
// disable_interrupt_output(interrupts selected_interrupt)
// to
// enable_interrupt_output(mpu_interrupts selected_interrupt)
// disable_interrupt_output(mpu_interrupts selected_interrupt)

@Bill2462 Bill2462 added the bug label Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants