Negative responce handling
This commit is contained in:
parent
4e245d4fb6
commit
fb49b5ccaf
@ -444,7 +444,7 @@ class ECU:
|
|||||||
datastr = dr.name + " [Command] " + self.Commands[dr.name].label
|
datastr = dr.name + " [Command] " + self.Commands[dr.name].label
|
||||||
if dr.type=="Text":
|
if dr.type=="Text":
|
||||||
datastr = dr.name
|
datastr = dr.name
|
||||||
|
help = ""
|
||||||
if mod_globals.opt_csv and csvf!=0 and (dr.type=='State' or dr.type=='Parameter'):
|
if mod_globals.opt_csv and csvf!=0 and (dr.type=='State' or dr.type=='Parameter'):
|
||||||
csvline += ";" + (pyren_encode(csvd) if mod_globals.opt_csv_human else str(csvd))
|
csvline += ";" + (pyren_encode(csvd) if mod_globals.opt_csv_human else str(csvd))
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
|
|||||||
snapshotService = se[sid]
|
snapshotService = se[sid]
|
||||||
|
|
||||||
resp = executeService( snapshotService, elm, [], "", True )
|
resp = executeService( snapshotService, elm, [], "", True )
|
||||||
if mod_globals.opt_demo and not resp:
|
if mod_globals.opt_demo and not resp or not resp.startswith(snapshotService.simpleRsp):
|
||||||
return "00"
|
return "00"
|
||||||
resp = resp.strip().replace(' ','')
|
resp = resp.strip().replace(' ','')
|
||||||
if not all(c in string.hexdigits for c in resp): resp = ''
|
if not all(c in string.hexdigits for c in resp): resp = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user