编辑__init__.py

This commit is contained in:
2026-07-07 11:52:20 +08:00
parent fe621b9dfc
commit 13fdb23c65
+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)
return Panda.HW_TYPE_TRES
# 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):