diff --git a/adafruit_debug_i2c.py b/adafruit_debug_i2c.py index b5ba725..8d6dee4 100644 --- a/adafruit_debug_i2c.py +++ b/adafruit_debug_i2c.py @@ -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,