Added closeReadingPipe.

This commit is contained in:
Henrik Ekblad
2014-05-01 18:55:01 +02:00
parent 6530f954a1
commit 8759712f12
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -860,6 +860,14 @@ void RF24::openReadingPipe(uint8_t child, uint64_t address)
}
}
/****************************************************************************/
void RF24::closeReadingPipe( uint8_t pipe )
{
write_register(EN_RXADDR,read_register(EN_RXADDR) & ~_BV(pgm_read_byte(&child_pipe_enable[pipe])));
}
/****************************************************************************/
void RF24::toggle_features(void)