Added an indication of which pipe a message came from. Fixed a bug where pipes 2+ were not

getting enabled.
This commit is contained in:
maniacbug
2011-04-01 22:55:33 -07:00
parent 37d8e8b17d
commit c8ed556aba
2 changed files with 45 additions and 9 deletions

11
RF24.h
View File

@@ -245,6 +245,14 @@ public:
*/
boolean available(void) ;
/**
* Test whether there are bytes available to be read
*
* @param[out] pipe_num Which pipe has the payload available
* @return True if there is a payload available, false if none is
*/
boolean available(uint8_t* pipe_num);
/**
* Read the payload
*
@@ -252,8 +260,6 @@ public:
*
* The size of data read is the fixed payload size, see getPayloadSize()
*
* @todo Indicate which pipe it came from
*
* @note I specifically chose 'void*' as a data type to make it easier
* for beginners to use. No casting needed.
*
@@ -323,4 +329,5 @@ public:
*/
#endif // __RF24_H__
// vim:ai sts=2 sw=2 ft=cpp