Changes
This commit is contained in:
parent
b2dba05257
commit
3d1b62ed45
@ -174,16 +174,25 @@ 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
|
||||
# print i.ncalib
|
||||
@ -309,20 +318,11 @@ def run( elm, ecu, command, data ):
|
||||
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user