Check second ids response
This commit is contained in:
parent
c440cf7202
commit
7c415e1665
@ -649,6 +649,10 @@ class ScanEcus:
|
|||||||
if row[base]!=req:
|
if row[base]!=req:
|
||||||
req = row[base]
|
req = row[base]
|
||||||
rrsp = self.elm.cmd(req)[3:]
|
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:]
|
if len( req )/2==3: rrsp = rrsp[3:]
|
||||||
|
|
||||||
byte = int(rrsp[int(row[base+3])*3:int(row[base+3])*3+2],16)
|
byte = int(rrsp[int(row[base+3])*3:int(row[base+3])*3+2],16)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user