Skip to content

Commit

Permalink
Merge pull request #9 from adafruit/fix_nonerror
Browse files Browse the repository at this point in the history
something seems to have broken with the passthru of in_end, fixing it…
  • Loading branch information
jepler authored Jul 23, 2021
2 parents df6f56f + 6914eaa commit 787d95c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_debug_i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def _writeto_then_readfrom(
"""
out_buffer_str = ", ".join([hex(i) for i in buffer_out[out_start:out_end]])
print("\tI2CWRITE @ {} ::".format(hex(address)), out_buffer_str)

if in_end is None:
in_end = len(buffer_in)
self._i2c.writeto_then_readfrom(
address,
buffer_out,
Expand Down

0 comments on commit 787d95c

Please sign in to comment.