From 0e4dd0118bde92e0c780be47ec325a838dfe8500 Mon Sep 17 00:00:00 2001 From: "Mr.one" Date: Fri, 17 Jul 2026 16:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panda/python/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/python/__init__.py b/panda/python/__init__.py index 32d3c2b0e..2fe7b3d4c 100644 --- a/panda/python/__init__.py +++ b/panda/python/__init__.py @@ -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):