编辑__init__.py

This commit is contained in:
2026-07-17 17:12:53 +08:00
parent 0e4dd0118b
commit 36aa774a1d
+2 -1
View File
@@ -704,7 +704,8 @@ class Panda:
return bytes(part_1 + part_2)
def get_type(self):
ret = bytearray(b'\x09')
#ret = bytearray(b'\x09')
ret = self._handle.controlRead(Panda.REQUEST_IN, 0xc1, 0, 0, 0x40)
# old bootstubs don't implement this endpoint, see comment in Panda.device
if self._bcd_hw_type is not None and (ret is None or len(ret) != 1):