We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df6f56f + 6914eaa commit 787d95cCopy full SHA for 787d95c
adafruit_debug_i2c.py
@@ -166,7 +166,8 @@ def _writeto_then_readfrom(
166
"""
167
out_buffer_str = ", ".join([hex(i) for i in buffer_out[out_start:out_end]])
168
print("\tI2CWRITE @ {} ::".format(hex(address)), out_buffer_str)
169
-
+ if in_end is None:
170
+ in_end = len(buffer_in)
171
self._i2c.writeto_then_readfrom(
172
address,
173
buffer_out,
0 commit comments