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
4 changes: 2 additions & 2 deletions adafruit_ens160.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class ENS160:
def __init__(self, i2c_bus: I2C, address: int = ENS160_I2CADDR_DEFAULT) -> None:
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)

if self.part_id != 0x160:
raise RuntimeError("Unable to find ENS160, check your wiring")
if self.part_id not in {0x160, 0x161}:
raise RuntimeError("Unable to find ENS160 or ENS161, check your wiring")
self.clear_command()
self.mode = MODE_STANDARD
self._buf = bytearray(8)
Expand Down