Skip to content

Commit b6e62c1

Browse files
committed
Changes on the _chip_id
1 parent f3fc304 commit b6e62c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_shtc3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def _chip_id(self): # readCommand(SHTC3_READID, data, 3);
107107
self._buffer[0] = _SHTC3_READID >> 8
108108
self._buffer[1] = _SHTC3_READID & 0xFF
109109

110+
self.reset()
111+
110112
with self.i2c_device as i2c:
111113
i2c.write_then_readinto(
112114
self._buffer, self._buffer, out_start=0, out_end=2, in_start=0, in_end=2

0 commit comments

Comments
 (0)