mirror of https://github.com/commaai/panda.git
connection helpers
This commit is contained in:
parent
8545c68e4d
commit
6503522b7f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue