Skip to content

Commit cb78e6d

Browse files
authored
Merge pull request #53 from michaeldye/ver35-compat-check
Fixes #52
2 parents cf64114 + a8a052c commit cb78e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rfm69.py

+1-1
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 != 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)