Skip to content

Commit 7b50cf5

Browse files
committed
fixed humidity resolution bug
1 parent 7a4dcb8 commit 7b50cf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ms8607.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def _set_hum_user_register(self, register_value):
368368
self._buffer[0] = _MS8607_HUM_CMD_WRITE_USR
369369
self._buffer[1] = register_value
370370
with self.humidity_i2c_device as i2c:
371-
i2c.write(self._buffer, end=1)
371+
# shouldn't this end at two?
372+
i2c.write(self._buffer, end=2)
372373

373374
@staticmethod
374375
def _check_humidity_crc(value, crc):

0 commit comments

Comments
 (0)