From 731c472abc08540a7cb85cd72819ed3930f1f95f Mon Sep 17 00:00:00 2001 From: maniacbug Date: Fri, 27 May 2011 20:11:38 -0700 Subject: [PATCH] Fixed a bug in setDataRate --- RF24.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RF24.cpp b/RF24.cpp index e5110f1..d3854fb 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -617,7 +617,7 @@ void RF24::setDataRate(rf24_datarate_e speed) { uint8_t setup = read_register(RF_SETUP) & RF_DR; if (speed == RF24_2MBPS) - setup |= RF_DR; + setup |= _BV(RF_DR); write_register(RF_SETUP,setup); }