Check second ids response

This commit is contained in:
Marianpol 2020-07-09 09:57:30 +02:00
parent c440cf7202
commit 7c415e1665

View File

@ -649,6 +649,10 @@ class ScanEcus:
if row[base]!=req:
req = row[base]
rrsp = self.elm.cmd(req)[3:]
ttrrsp = rrsp.replace(' ','')
if not all(c in string.hexdigits for c in ttrrsp): return False
if len( req )/2==3: rrsp = rrsp[3:]
byte = int(rrsp[int(row[base+3])*3:int(row[base+3])*3+2],16)