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); }