mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-09 09:43:41 +08:00
Merge panda subtree
old-commit-hash: 97a289e6a974f7e0f3f5ae91cc91626181462bb3
This commit is contained in:
+1
-3
@@ -1,8 +1,6 @@
|
||||
|
||||
import os
|
||||
import usb1
|
||||
import struct
|
||||
import time
|
||||
import binascii
|
||||
|
||||
# *** DFU mode ***
|
||||
@@ -116,6 +114,6 @@ class PandaDFU(object):
|
||||
self.status()
|
||||
try:
|
||||
self._handle.controlWrite(0x21, DFU_DNLOAD, 2, 0, b"")
|
||||
stat = str(self._handle.controlRead(0x21, DFU_GETSTATUS, 0, 0, 6))
|
||||
_ = str(self._handle.controlRead(0x21, DFU_GETSTATUS, 0, 0, 6))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user