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

Return pipe number after executing whatHappened() #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

basilfx
Copy link

@basilfx basilfx commented Apr 2, 2012

Hi maniacbug,

I'm using your RF24, RF24Network and FreeRTOS libraries together with interrupts for the RF24. To keep interrupt routines short, I modified whatHappened() to return the pipe number for which data is available. This way, a modified RF24Network::update() does not have to poll all pipes for data in a separate task, but the RF24Network::update() routine can be executed directly. Of course, the return value of whatHappened() is only valid (and of use) when tx_ready is true.

Please review my change. Hopefully it could be of use!

Kind regards,
BasilFX

…ready. Useful when using interrupts to keep interrupt function short. See data sheet page 59 of the nRF24L01+ for an explanation.
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.

1 participant