instant boot (#1910)

no more boot time :P
This commit is contained in:
Adeeb Shihadeh
2024-03-22 14:01:44 -07:00
committed by GitHub
parent 091773f448
commit dd82382d5f
3 changed files with 8 additions and 6 deletions

View File

@@ -304,6 +304,10 @@ class Panda:
for bus in range(PANDA_BUS_CNT):
self.set_can_speed_kbps(bus, self._can_speed_kbps)
@property
def spi(self) -> bool:
return isinstance(self._handle, PandaSpiHandle)
@classmethod
def spi_connect(cls, serial, ignore_version=False):
# get UID to confirm slave is present and up