Skip to content

Commit

Permalink
Merge pull request #53 from michaeldye/ver35-compat-check
Browse files Browse the repository at this point in the history
Fixes #52
  • Loading branch information
ladyada authored Apr 22, 2024
2 parents cf64114 + a8a052c commit cb78e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_rfm69.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def __init__( # pylint: disable=invalid-name
self.reset() # Reset the chip.
# Check the version of the chip.
version = self._read_u8(_REG_VERSION)
if version != 0x24:
if version not in (0x23, 0x24):
raise RuntimeError("Invalid RFM69 version, check wiring!")
self.idle() # Enter idle state.
# Setup the chip in a similar way to the RadioHead RFM69 library.
Expand Down

0 comments on commit cb78e6d

Please sign in to comment.