Fix pydfu/libusb issue

* See https://github.com/walac/pyusb/issues/94
This commit is contained in:
iabdalkader 2015-04-22 02:28:12 +02:00
parent a8928ca3b2
commit b9d96dab42

View File

@ -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(',')