Fix bug in openReadingPipe which disallowed pipe 5
This commit is contained in:
parent
748fde239b
commit
6e6264be43
2
RF24.cpp
2
RF24.cpp
|
@ -517,7 +517,7 @@ void RF24::openReadingPipe(uint8_t child, uint64_t value)
|
||||||
if (child == 0)
|
if (child == 0)
|
||||||
pipe0_reading_address = value;
|
pipe0_reading_address = value;
|
||||||
|
|
||||||
if (child < 5)
|
if (child <= 5)
|
||||||
{
|
{
|
||||||
// For pipes 2-5, only write the LSB
|
// For pipes 2-5, only write the LSB
|
||||||
if ( child < 2 )
|
if ( child < 2 )
|
||||||
|
|
Loading…
Reference in New Issue