Fix bug in openReadingPipe which disallowed pipe 5
This commit is contained in:
parent
748fde239b
commit
6e6264be43
1 changed files with 1 additions and 1 deletions
2
RF24.cpp
2
RF24.cpp
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue