mirror of
https://github.com/solokeys/dfuse-tool.git
synced 2026-06-20 04:16:26 -07:00
libusb call changed
This commit is contained in:
+2
-1
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user