From 6e6264be43e9e95c9b25838ea16377650e8fc215 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Sat, 25 Jun 2011 21:18:13 -0700 Subject: [PATCH] Fix bug in openReadingPipe which disallowed pipe 5 --- RF24.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RF24.cpp b/RF24.cpp index d4f11ea..1e4eabf 100644 --- a/RF24.cpp +++ b/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 )