harlequin-tech/rf24HQ — pull request #4 by spirilis (2012-05-06 20:03:51+00:00)
Title: Big commit ready

Check the changes on this one, a lot of the code was reorganized within the .cpp file and a lot of delays/timeouts adhered to. The new chipState() function should help streamline the operation of the various enableRx/Tx functions.

Also available() gave me a lot of false positives due to rxFifoAvailable() showing positive when RX_DR was off. Changing it to only check for RX_DR results in a continually flawless read loop in my test program with a 2nd arduino/nRF sending the same message every 250ms. Right now I feel this code is in decent shape although I haven't run it through all the scenarios yet. I also ditched RFStream in my tests, which I will add back in soon and test that integration.