Skip to content

Commit d3db936

Browse files
authored
Merge pull request #8 from tannewt/remove_stop
Remove stop kwarg and use write_then_readinto.
2 parents d821033 + 9290529 commit d3db936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mpl3115a2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _read_into(self, address, buf, count=None):
139139
if count is None:
140140
count = len(buf)
141141
with self._device as i2c:
142-
i2c.write_then_readinto(bytes([address & 0xFF]), buf, in_end=count, stop=False)
142+
i2c.write_then_readinto(bytes([address & 0xFF]), buf, in_end=count)
143143

144144
def _read_u8(self, address):
145145
# Read an 8-bit unsigned value from the specified 8-bit address.

0 commit comments

Comments
 (0)