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

Fix for creating multiple instances with SPIDEV #585

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

krzysztof9nowak
Copy link
Contributor

When creating multiple instances of SPI class using SPIDEV driver,
only the first one got initated, because spiIsInitiated was defined as
global variable. It was changed to be a private variable of SPI class.

When creating multiple instances of SPI class using SPIDEV driver,
only the first one got initated, because spiIsInitiated was defined as
global variable. It was changed to be a private variable of SPI class.
Copy link
Member

@TMRh20 TMRh20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't properly test right now with multiple instances, but works fine with a single one. Does not seem to break anything.

@TMRh20 TMRh20 merged commit 98bce08 into nRF24:master Mar 26, 2020
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