From b9d96dab420f64db9c5151ec421ca5d0bd49c9dc Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 22 Apr 2015 02:28:12 +0200 Subject: [PATCH] Fix pydfu/libusb issue * See https://github.com/walac/pyusb/issues/94 --- usr/pydfu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/pydfu.py b/usr/pydfu.py index d55c9e268..174b30d18 100755 --- a/usr/pydfu.py +++ b/usr/pydfu.py @@ -380,7 +380,7 @@ def get_memory_layout(device): """ cfg = device[0] intf = cfg[(0, 0)] - mem_layout_str = usb.util.get_string(device, 255, intf.iInterface) + mem_layout_str = usb.util.get_string(device, intf.iInterface) mem_layout = mem_layout_str.split('/') addr = int(mem_layout[1], 0) segments = mem_layout[2].split(',')