Skip to content

Commit 37e38ec

Browse files
committed
Add support for MCP9601
1 parent b705748 commit 37e38ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_mcp9600.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def __init__(self, i2c, address=_DEFAULT_ADDRESS, tctype="K", tcfilter=0):
218218
self.buf[1] = tcfilter | (ttype << 4)
219219
with self.i2c_device as tci2c:
220220
tci2c.write(self.buf, end=2)
221-
if self._device_id != 0x40:
222-
raise RuntimeError("Failed to find MCP9600 - check wiring!")
221+
if self._device_id not in (0x40, 0x41):
222+
raise RuntimeError("Failed to find MCP9600 or MCP9601 - check wiring!")
223223

224224
def alert_config(
225225
self,

0 commit comments

Comments
 (0)