diff --git a/tuning.py b/tuning.py index 0272329..3adef75 100755 --- a/tuning.py +++ b/tuning.py @@ -106,7 +106,7 @@ def read(self, name): usb.util.CTRL_IN | usb.util.CTRL_TYPE_VENDOR | usb.util.CTRL_RECIPIENT_DEVICE, 0, cmd, id, length, self.TIMEOUT) - response = struct.unpack(b'ii', response.tostring()) + response = struct.unpack(b'ii', response.tobytes()) if data[2] == 'int': result = response[0]