Skip to content

Commit 787d95c

Browse files
authored
Merge pull request #9 from adafruit/fix_nonerror
something seems to have broken with the passthru of in_end, fixing it…
2 parents df6f56f + 6914eaa commit 787d95c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_debug_i2c.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def _writeto_then_readfrom(
166166
"""
167167
out_buffer_str = ", ".join([hex(i) for i in buffer_out[out_start:out_end]])
168168
print("\tI2CWRITE @ {} ::".format(hex(address)), out_buffer_str)
169-
169+
if in_end is None:
170+
in_end = len(buffer_in)
170171
self._i2c.writeto_then_readfrom(
171172
address,
172173
buffer_out,

0 commit comments

Comments
 (0)