Changes
This commit is contained in:
parent
b2dba05257
commit
3d1b62ed45
@ -174,16 +174,25 @@ def run( elm, ecu, command, data ):
|
|||||||
break
|
break
|
||||||
elif ecuSet.ncalib == "Other":
|
elif ecuSet.ncalib == "Other":
|
||||||
correctEcu = ecuSet
|
correctEcu = ecuSet
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
correctEcu = ecuSet
|
correctEcu = ecuSet
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
correctEcu = ecuSet
|
correctEcu = ecuSet
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
correctEcu = ecusList[0]
|
correctEcu = ecusList[0]
|
||||||
|
|
||||||
if not correctEcu and mod_globals.opt_demo:
|
if not correctEcu and mod_globals.opt_demo:
|
||||||
correctEcu = ecusList[0]
|
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:
|
# for i in ecusList:
|
||||||
# print i.vdiag
|
# print i.vdiag
|
||||||
# print i.ncalib
|
# print i.ncalib
|
||||||
@ -309,20 +318,11 @@ def run( elm, ecu, command, data ):
|
|||||||
|
|
||||||
clearScreen()
|
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
|
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
|
print
|
||||||
|
|
||||||
if "NR" in response:
|
if "NR" in response:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user