Skip to content

Commit a8a052c

Browse files
authored
use tuple instead of list for versions
1 parent a925403 commit a8a052c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rfm69.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def __init__( # pylint: disable=invalid-name
312312
self.reset() # Reset the chip.
313313
# Check the version of the chip.
314314
version = self._read_u8(_REG_VERSION)
315-
if version not in [0x23, 0x24]:
315+
if version not in (0x23, 0x24):
316316
raise RuntimeError("Invalid RFM69 version, check wiring!")
317317
self.idle() # Enter idle state.
318318
# Setup the chip in a similar way to the RadioHead RFM69 library.

0 commit comments

Comments
 (0)