From 52fff795d07d6e3628737e15b065d8bfff327254 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Sat, 25 Mar 2017 11:03:35 -0500 Subject: [PATCH] Fix call to usb.util.get_string() to deal with https://github.com/walac/pyusb/commit/dac78933f6a6eaf5ae82f48e2f4e7d1733dc2f98#diff-23d5219b9f9598e15347eacae1ec161e --- dfuse/DfuDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfuse/DfuDevice.py b/dfuse/DfuDevice.py index 70e1ad7..f7b0242 100644 --- a/dfuse/DfuDevice.py +++ b/dfuse/DfuDevice.py @@ -70,7 +70,7 @@ def leave(self): return self.dnload(0x0, []) # Just send an empty data. def get_string(self, index): - return usb.util.get_string(self.dev, 256, index) + return usb.util.get_string(self.dev, index) def wait_while_state(self, state): if not isinstance(state, (list, tuple)):