Optimized ID download
This commit is contained in:
parent
e1a90ea5d4
commit
28c089bcb4
@ -263,9 +263,9 @@ class ECU:
|
|||||||
break
|
break
|
||||||
if name not in self.Identifications.keys():
|
if name not in self.Identifications.keys():
|
||||||
return 'none','unknown identification'
|
return 'none','unknown identification'
|
||||||
self.elm.clear_cache()
|
|
||||||
if raw:
|
if raw:
|
||||||
return get_identification( self.Identifications[name], self.Mnemonics, self.Services, self.elm, self.calc, raw)
|
return get_identification( self.Identifications[name], self.Mnemonics, self.Services, self.elm, self.calc, raw)
|
||||||
|
self.elm.clear_cache()
|
||||||
datastr, help, csvd = get_identification( self.Identifications[name], self.Mnemonics, self.Services, self.elm, self.calc )
|
datastr, help, csvd = get_identification( self.Identifications[name], self.Mnemonics, self.Services, self.elm, self.calc )
|
||||||
return csvd, datastr
|
return csvd, datastr
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ def get_default_std_a( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646']
|
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
DTCs = DTCs[9:]
|
DTCs = DTCs[9:]
|
||||||
continue
|
continue
|
||||||
@ -191,8 +191,8 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646']
|
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
DTCs = DTCs[12:]
|
DTCs = DTCs[12:]
|
||||||
continue
|
continue
|
||||||
@ -299,8 +299,8 @@ def get_default_failflag( df, mn, se, elm, calc ):
|
|||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
continue
|
continue
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646']
|
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||||
|
|
||||||
# Now get the interpretation
|
# Now get the interpretation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user