From 7d1faa5ae46e40ad1fe3271274aabb9b8a11fc77 Mon Sep 17 00:00:00 2001 From: Axxiant Ltd Date: Wed, 8 Oct 2025 09:20:35 +0100 Subject: [PATCH] Fix Python 3 incompatibility: replace deprecated tostring() with tobytes() in tuning.py --- tuning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]