File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -860,6 +860,14 @@ void RF24::openReadingPipe(uint8_t child, uint64_t address)
860
860
}
861
861
}
862
862
863
+ /* ***************************************************************************/
864
+
865
+ void RF24::closeReadingPipe ( uint8_t pipe )
866
+ {
867
+ write_register (EN_RXADDR,read_register (EN_RXADDR) & ~_BV (pgm_read_byte(&child_pipe_enable[pipe])));
868
+ }
869
+
870
+
863
871
/* ***************************************************************************/
864
872
865
873
void RF24::toggle_features (void )
Original file line number Diff line number Diff line change @@ -208,6 +208,15 @@ class RF24
208
208
*/
209
209
void openReadingPipe (uint8_t number, uint64_t address);
210
210
211
+
212
+
213
+ /* *
214
+ * Close a pipe after it has been previously opened.
215
+ * Can be safely called without having previously opened a pipe.
216
+ * @param pipe Which pipe # to close, 0-5.
217
+ */
218
+ void closeReadingPipe ( uint8_t pipe ) ;
219
+
211
220
/* *@}*/
212
221
/* *
213
222
* @name Advanced Operation
You can’t perform that action at this time.
0 commit comments