Commit 1ad6e755 authored by kliment's avatar kliment

Merge pull request #148 from kliment/master

Merge fixes added to master into experimental
parents b6a52146 6a630098
...@@ -410,7 +410,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -410,7 +410,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.serialport.Clear() self.serialport.Clear()
self.serialport.AppendItems(portslist) self.serialport.AppendItems(portslist)
try: try:
if os.path.exists(self.settings.port) or self.settings.port.upper().startswith('COM'): if os.path.exists(self.settings.port) or self.settings.port in scan:
self.serialport.SetValue(self.settings.port) self.serialport.SetValue(self.settings.port)
elif len(portslist)>0: elif len(portslist)>0:
self.serialport.SetValue(portslist[0]) self.serialport.SetValue(portslist[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment