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
|
||||
if dr.type=="Text":
|
||||
datastr = dr.name
|
||||
|
||||
help = ""
|
||||
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))
|
||||
|
||||
|
@ -111,7 +111,7 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
|
||||
snapshotService = se[sid]
|
||||
|
||||
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"
|
||||
resp = resp.strip().replace(' ','')
|
||||
if not all(c in string.hexdigits for c in resp): resp = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user