connection helpers

This commit is contained in:
dzid26 2024-09-19 16:49:23 -07:00
parent 8545c68e4d
commit 6503522b7f
1 changed files with 6 additions and 0 deletions

View File

@ -391,6 +391,12 @@ class Panda:
return context, usb_handle, usb_serial, bootstub, bcd
def is_connected_spi(self):
return isinstance(self._handle, PandaSpiHandle)
def is_connected_usb(self):
return isinstance(self._handle, PandaUsbHandle)
@classmethod
def list(cls):
ret = cls.usb_list()