From 8780a8e266790918bb6dad7b24ecc332d5f4496b Mon Sep 17 00:00:00 2001 From: shrlnm Date: Thu, 2 Jan 2020 09:50:16 +0300 Subject: [PATCH] 9q plus all ecuref in -e option --- pyren/pyren.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyren/pyren.py b/pyren/pyren.py index a48f7f0..2089829 100755 --- a/pyren/pyren.py +++ b/pyren/pyren.py @@ -262,7 +262,12 @@ def main(): if mod_globals.opt_demo and len(mod_globals.opt_ecuid)>0: # demo mode with predefined ecu list - se.read_Uces_file( all = True ) + if 'tcom' in mod_globals.opt_ecuid.lower() or len(mod_globals.opt_ecuid)<4: + tcomid = ''.join([i for i in mod_globals.opt_ecuid if i.isdigit()]) + se.load_model_ECUs('Vehicles/TCOM_'+tcomid+'.xml') + mod_globals.opt_ecuid = ','.join(sorted(se.allecus.keys())) + else: + se.read_Uces_file( all = True ) se.detectedEcus = [] for i in mod_globals.opt_ecuid.split(','): if i in se.allecus.keys():