From 3d1b62ed45c1ab4f74180c3ec74d280103d044f2 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Thu, 6 Feb 2020 18:18:09 +0100 Subject: [PATCH] Changes --- pyren/scen_ecri_paraminj1.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pyren/scen_ecri_paraminj1.py b/pyren/scen_ecri_paraminj1.py index b091aaa..4e3c4aa 100644 --- a/pyren/scen_ecri_paraminj1.py +++ b/pyren/scen_ecri_paraminj1.py @@ -174,15 +174,24 @@ def run( elm, ecu, command, data ): break elif ecuSet.ncalib == "Other": correctEcu = ecuSet + break else: correctEcu = ecuSet + break else: correctEcu = ecuSet + break else: correctEcu = ecusList[0] - + if not correctEcu and mod_globals.opt_demo: correctEcu = ecusList[0] + + if vdiagExists: + if not correctEcu: + print '*'*80 + ch = raw_input('Unknown diagnostic version. Press ENTER to exit') + return # for i in ecusList: # print i.vdiag @@ -308,21 +317,12 @@ def run( elm, ecu, command, data ): return clearScreen() - - if not params: #VP042 for INLET_FLAP - print - response = ecu.run_cmd(command) - print - if "NR" in response: - print failMessage - else: - print successMessage - print - ch = raw_input('Press ENTER to exit') - return print - response = ecu.run_cmd(command,paramToSend) + if params: + response = ecu.run_cmd(command,paramToSend) + else: #VP042 for INLET_FLAP + response = ecu.run_cmd(command) print if "NR" in response: