Commit 79223d31 authored by Nathan Zadoks's avatar Nathan Zadoks

port setting is now also respected if the port exists but is not detected in...

port setting is now also respected if the port exists but is not detected in scan (for udev symlinks)
parent af9a6aaa
...@@ -392,7 +392,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -392,7 +392,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.serialport.Clear() self.serialport.Clear()
self.serialport.AppendItems(portslist) self.serialport.AppendItems(portslist)
try: try:
if self.settings.port in scan: if os.path.exists(self.settings.port):
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