Minor ELM connectivity fixes
This commit is contained in:
parent
a89eb738b8
commit
dddbccaa92
@ -557,6 +557,7 @@ class DDTLauncher():
|
|||||||
self.applySettings()
|
self.applySettings()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
mod_globals.opt_demo = False
|
||||||
self.elm = ELM(mod_globals.opt_port, mod_globals.opt_speed, mod_globals.opt_log)
|
self.elm = ELM(mod_globals.opt_port, mod_globals.opt_speed, mod_globals.opt_log)
|
||||||
except:
|
except:
|
||||||
result = tkMessageBox.askquestion("Warning", "ELM is not connected. Would you like to work OFF-line?", icon='warning')
|
result = tkMessageBox.askquestion("Warning", "ELM is not connected. Would you like to work OFF-line?", icon='warning')
|
||||||
|
@ -308,7 +308,7 @@ class Port:
|
|||||||
print '*' * 40
|
print '*' * 40
|
||||||
print '* Connection to ELM was lost'
|
print '* Connection to ELM was lost'
|
||||||
mod_globals.opt_demo = True
|
mod_globals.opt_demo = True
|
||||||
exit (2)
|
|
||||||
return byte
|
return byte
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
@ -337,7 +337,6 @@ class Port:
|
|||||||
print '*' * 40
|
print '*' * 40
|
||||||
print '* Connection to ELM was lost'
|
print '* Connection to ELM was lost'
|
||||||
mod_globals.opt_demo = True
|
mod_globals.opt_demo = True
|
||||||
exit (2)
|
|
||||||
|
|
||||||
def expect(self, pattern, time_out=1):
|
def expect(self, pattern, time_out=1):
|
||||||
|
|
||||||
|
@ -831,7 +831,6 @@ def main():
|
|||||||
|
|
||||||
# change serial port baud rate
|
# change serial port baud rate
|
||||||
if not mod_globals.opt_demo and elm.port and elm.port.portType==0:
|
if not mod_globals.opt_demo and elm.port and elm.port.portType==0:
|
||||||
elm.port.check_elm()
|
|
||||||
if mod_globals.opt_speed < mod_globals.opt_rate:
|
if mod_globals.opt_speed < mod_globals.opt_rate:
|
||||||
elm.port.soft_boudrate(mod_globals.opt_rate)
|
elm.port.soft_boudrate(mod_globals.opt_rate)
|
||||||
|
|
||||||
@ -867,7 +866,6 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print 'Error: unknown macro name:', auto_macro
|
print 'Error: unknown macro name:', auto_macro
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
print var['$addr']+':'+var['$txa']+':'+var['$prompt'] + '#',
|
print var['$addr']+':'+var['$txa']+':'+var['$prompt'] + '#',
|
||||||
if len(cmd_lines)==0:
|
if len(cmd_lines)==0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user