Fixed a bug in setDataRate
This commit is contained in:
parent
34efd5ac94
commit
731c472abc
1 changed files with 1 additions and 1 deletions
2
RF24.cpp
2
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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue