Skip to content

Commit 397ea51

Browse files
authored
Merge pull request #27 from bhartung/master
corrected is_plus_variant check when setting data_rate
2 parents 69c883e + 3979243 commit 397ea51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuitpython_nrf24l01/rf24.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def data_rate(self):
690690
def data_rate(self, speed):
691691
if not speed in (1, 2, 250):
692692
raise ValueError("data_rate must be 1 (Mbps), 2 (Mbps), or 250 (kbps)")
693-
if self.is_plus_variant and speed == 250:
693+
if not self.is_plus_variant and speed == 250:
694694
raise NotImplementedError(
695695
"250 kbps data rate is not available for the non-plus "
696696
"variants of the nRF24L01 transceivers."

0 commit comments

Comments
 (0)