Negative responce handling

This commit is contained in:
Marianpol 2020-02-23 16:25:48 +01:00
parent 4e245d4fb6
commit fb49b5ccaf
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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 = ''