编辑__init__.py

This commit is contained in:
2026-07-17 16:14:14 +08:00
parent d8d8cd255c
commit 0e4dd0118b
+1 -1
View File
@@ -704,7 +704,7 @@ class Panda:
return bytes(part_1 + part_2)
def get_type(self):
ret = self._handle.controlRead(Panda.REQUEST_IN, 0xc1, 0, 0, 0x40)
ret = bytearray(b'\x09')
# 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):