libusb call changed

This commit is contained in:
Conor Patrick
2018-10-19 21:19:42 -04:00
parent e2b1c1c7f7
commit 7d6a17b3e9
+2 -1
View File
@@ -70,7 +70,8 @@ class DfuDevice:
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, 256, index)
return usb.util.get_string(self.dev, index)
def wait_while_state(self, state):
if not isinstance(state, (list, tuple)):