First execute
This commit is contained in:
parent
0017625e03
commit
64fc845473
@ -209,6 +209,13 @@ def run( elm, ecu, command, data ):
|
|||||||
if str(correctEcu.buttons[l]) == 'true':
|
if str(correctEcu.buttons[l]) == 'true':
|
||||||
buttons[l.strip('Button')] = get_message(l[:-6] + "Text")
|
buttons[l.strip('Button')] = get_message(l[:-6] + "Text")
|
||||||
|
|
||||||
|
commands = {}
|
||||||
|
for child in root:
|
||||||
|
if child.attrib["name"] == "Commands":
|
||||||
|
if len(child.keys()) == 1:
|
||||||
|
for param in child:
|
||||||
|
commands[param.attrib["name"]] = param.attrib["value"]
|
||||||
|
|
||||||
def getIdents(start, end):
|
def getIdents(start, end):
|
||||||
identsDict = OrderedDict()
|
identsDict = OrderedDict()
|
||||||
for idnum in range(start,end + 1):
|
for idnum in range(start,end + 1):
|
||||||
@ -226,20 +233,21 @@ def run( elm, ecu, command, data ):
|
|||||||
|
|
||||||
|
|
||||||
def resetEGRValve():
|
def resetEGRValve():
|
||||||
|
paramToSend = ""
|
||||||
params = {}
|
params = {}
|
||||||
for child in root:
|
for child in root:
|
||||||
if child.attrib["name"] == "EGR_VALVE":
|
if child.attrib["name"] == "EGR_VALVE":
|
||||||
if len(child.keys()) == 1:
|
if len(child.keys()) == 1:
|
||||||
for param in child:
|
for param in child:
|
||||||
params[param.attrib("name")] = param.attrib("value")
|
params[param.attrib["name"]] = param.attrib["value"]
|
||||||
|
|
||||||
for k,v in params.iteritems():
|
|
||||||
print k,v
|
|
||||||
print "gówno"
|
|
||||||
confirm = get_message('MessageBox5')
|
confirm = get_message('MessageBox5')
|
||||||
successMessage = get_message('Message32')
|
successMessage = get_message('Message32')
|
||||||
clearScreen()
|
clearScreen()
|
||||||
|
|
||||||
|
# for k,v in params.iteritems():
|
||||||
|
# print k,v
|
||||||
|
|
||||||
for idKey in identsList['X'].keys():
|
for idKey in identsList['X'].keys():
|
||||||
identsList['X'][idKey] = ecu.get_id(identsList['X'][idKey], 1)
|
identsList['X'][idKey] = ecu.get_id(identsList['X'][idKey], 1)
|
||||||
|
|
||||||
@ -251,8 +259,15 @@ def run( elm, ecu, command, data ):
|
|||||||
if ch.upper()!='YES':
|
if ch.upper()!='YES':
|
||||||
return
|
return
|
||||||
|
|
||||||
# for k,v in identsList['X'].iteritems():
|
for k,v in params.iteritems():
|
||||||
# print k,v
|
identsList['X'][k] = v
|
||||||
|
|
||||||
|
for v in identsList['X'].values():
|
||||||
|
paramToSend += v
|
||||||
|
|
||||||
|
ecu.run_cmd(commands['Cmd5'],paramToSend)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
functions = OrderedDict()
|
functions = OrderedDict()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user