Show DTCs with missing definitions
This commit is contained in:
parent
1ba380ee55
commit
bd0a827385
@ -56,9 +56,9 @@ def get_default_std_a( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
hex_val = get_mnemonicDTC( mn[m], '57 01 '+ DTCs )
|
hex_val = get_mnemonicDTC( mn[m], '57 01 '+ DTCs )
|
||||||
comp = comp.replace(m, "0x"+hex_val)
|
comp = comp.replace(m, "0x"+hex_val)
|
||||||
isExists = calc.calculate(comp)
|
isExists = calc.calculate(comp)
|
||||||
if isExists==0: #it is not a problem
|
# if isExists==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[9:]
|
# DTCs = DTCs[9:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
# Check if the default is alive
|
# Check if the default is alive
|
||||||
|
|
||||||
@ -76,16 +76,16 @@ def get_default_std_a( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
|
|
||||||
# if the self.status eq 1 then default is alive
|
# if the self.status eq 1 then default is alive
|
||||||
# if the self.status eq 2 then default is memorised
|
# if the self.status eq 2 then default is memorised
|
||||||
if df[dtc].status==0: #it is not a problem
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[9:]
|
# DTCs = DTCs[9:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||||
if df[dtc].status==0: #it is not a problem
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[9:]
|
# DTCs = DTCs[9:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
# Now get the interpretation
|
# Now get the interpretation
|
||||||
|
|
||||||
@ -167,9 +167,9 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
comp = comp.replace(m, "0x"+hex_val)
|
comp = comp.replace(m, "0x"+hex_val)
|
||||||
isExists = calc.calculate(comp)
|
isExists = calc.calculate(comp)
|
||||||
|
|
||||||
if isExists==0: #it is not a problem
|
# if isExists==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[12:]
|
# DTCs = DTCs[12:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
# Check if the default is alive
|
# Check if the default is alive
|
||||||
|
|
||||||
@ -186,16 +186,16 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
|
|
||||||
# if the self.status eq 1 then default is alive
|
# if the self.status eq 1 then default is alive
|
||||||
# if the self.status eq 2 then default is memorised
|
# if the self.status eq 2 then default is memorised
|
||||||
if df[dtc].status==0: #it is not a problem
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[12:]
|
# DTCs = DTCs[12:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||||
if df[dtc].status==0: #it is not a problem
|
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||||
DTCs = DTCs[12:]
|
# DTCs = DTCs[12:]
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
# Now get the interpretation
|
# Now get the interpretation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user