mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 03:57:45 +08:00
+1
-1
@@ -114,7 +114,7 @@ class dfu_device(object):
|
|||||||
def get_status(self):
|
def get_status(self):
|
||||||
buf = self.handle.controlMsg(usb.ENDPOINT_IN | usb.TYPE_CLASS |
|
buf = self.handle.controlMsg(usb.ENDPOINT_IN | usb.TYPE_CLASS |
|
||||||
usb.RECIP_INTERFACE, DFU_GETSTATUS,
|
usb.RECIP_INTERFACE, DFU_GETSTATUS,
|
||||||
6, index=self.index)
|
6, index=self.index, timeout=2000)
|
||||||
return dfu_status(buf)
|
return dfu_status(buf)
|
||||||
|
|
||||||
def clear_status(self):
|
def clear_status(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user