From a22906f9617215f0448daa3e9c6c871e0ab0c9b1 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 28 Jun 2011 06:44:41 -0700 Subject: [PATCH] Added setRetries() --- RF24.cpp | 7 +++++++ RF24.h | 9 +++++++++ examples/pingpair/pingpair.pde | 8 +++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/RF24.cpp b/RF24.cpp index 00469fc..62c6e93 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -631,5 +631,12 @@ void RF24::setCRCLength(rf24_crclength_e length) write_register(CONFIG,config); } +/******************************************************************/ + +void RF24::setRetries(uint8_t delay, uint8_t count) +{ + write_register(SETUP_RETR,(delay&0xf)<