From f2cbec161edd73e9c1da14de9c508c7c06c3e1ec Mon Sep 17 00:00:00 2001 From: Robbe Date: Tue, 5 Nov 2019 18:25:42 -0800 Subject: [PATCH] Added has_obd() to python library --- python/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/__init__.py b/python/__init__.py index bad119eb..57869f91 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -389,6 +389,9 @@ class Panda(object): 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]