From bd0a827385ca90c30bf61d6092721e16cba24966 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Fri, 8 Oct 2021 20:59:08 +0200 Subject: [PATCH] Show DTCs with missing definitions --- pyren/mod_ecu_default.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pyren/mod_ecu_default.py b/pyren/mod_ecu_default.py index 5171351..8c02eb3 100644 --- a/pyren/mod_ecu_default.py +++ b/pyren/mod_ecu_default.py @@ -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