Fix bug in openReadingPipe which disallowed pipe 5

This commit is contained in:
maniacbug 2011-06-25 21:18:13 -07:00
parent 748fde239b
commit 6e6264be43
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ void RF24::openReadingPipe(uint8_t child, uint64_t value)
if (child == 0)
pipe0_reading_address = value;
if (child < 5)
if (child <= 5)
{
// For pipes 2-5, only write the LSB
if ( child < 2 )