From 6914eaacf3ef1b294f6a7321cce5eced096558d9 Mon Sep 17 00:00:00 2001 From: lady ada Date: Thu, 22 Jul 2021 20:44:30 -0400 Subject: [PATCH] something seems to have broken with the passthru of in_end, fixing it to not be None makes it oK (?) --- adafruit_debug_i2c.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,