Merge pull request #37 from tannewt/remove_stop

Thanks for the update!
This commit is contained in:
Carter Nelson 2019-08-22 15:31:25 -07:00 committed by GitHub
commit 33bb64cd99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,5 +199,5 @@ class ADS1x15(object):
if fast:
i2c.readinto(self.buf, end=2)
else:
i2c.write_then_readinto(bytearray([reg]), self.buf, in_end=2, stop=False)
i2c.write_then_readinto(bytearray([reg]), self.buf, in_end=2)
return self.buf[0] << 8 | self.buf[1]