diff --git a/python/__init__.py b/python/__init__.py index bad119ebbf202c..57869f91bc58eb 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -389,6 +389,9 @@ def is_black(self): def is_uno(self): return self.get_type() == Panda.HW_TYPE_UNO + def has_obd(self): + return (self.is_uno() or self.is_black()) + def get_serial(self): dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd0, 0, 0, 0x20) hashsig, calc_hash = dat[0x1c:], hashlib.sha1(dat[0:0x1c]).digest()[0:4]