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 )
|
||||
comp = comp.replace(m, "0x"+hex_val)
|
||||
isExists = calc.calculate(comp)
|
||||
if isExists==0: #it is not a problem
|
||||
DTCs = DTCs[9:]
|
||||
continue
|
||||
# if isExists==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[9:]
|
||||
# continue
|
||||
|
||||
# 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 2 then default is memorised
|
||||
if df[dtc].status==0: #it is not a problem
|
||||
DTCs = DTCs[9:]
|
||||
continue
|
||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[9:]
|
||||
# continue
|
||||
|
||||
isAlive = ""
|
||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||
if df[dtc].status==0: #it is not a problem
|
||||
DTCs = DTCs[9:]
|
||||
continue
|
||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[9:]
|
||||
# continue
|
||||
|
||||
# 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)
|
||||
isExists = calc.calculate(comp)
|
||||
|
||||
if isExists==0: #it is not a problem
|
||||
DTCs = DTCs[12:]
|
||||
continue
|
||||
# if isExists==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[12:]
|
||||
# continue
|
||||
|
||||
# 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 2 then default is memorised
|
||||
if df[dtc].status==0: #it is not a problem
|
||||
DTCs = DTCs[12:]
|
||||
continue
|
||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[12:]
|
||||
# continue
|
||||
|
||||
isAlive = ""
|
||||
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882'] #ALIVE
|
||||
else: isAlive = mod_globals.language_dict['646'] #MEMORISED
|
||||
if df[dtc].status==0: #it is not a problem
|
||||
DTCs = DTCs[12:]
|
||||
continue
|
||||
# if df[dtc].status==0: #ignore error if it's definition does not exist
|
||||
# DTCs = DTCs[12:]
|
||||
# continue
|
||||
|
||||
# Now get the interpretation
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user