maniacbug/RF24 — pull request #6 by basilfx (2012-04-02 18:15:14+00:00)
Title: Return pipe number after executing whatHappened()

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