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.
1 parent df6f56f commit 6914eaaCopy full SHA for 6914eaa
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