Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_mmc56x3.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class MMC5603:
def __init__(self, i2c_bus: I2C, address: int = _MMC5603_I2CADDR_DEFAULT) -> None:
# pylint: disable=no-member
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)
if self._chip_id != _MMC5603_CHIP_ID:
if self._chip_id not in (_MMC5603_CHIP_ID, 0x00):
raise RuntimeError("Failed to find MMC5603 - check your wiring!")

self.reset()
Expand Down
Loading