Commit 7124f2f9 authored by Kliment Yanev's avatar Kliment Yanev

Make newly deceted port first if previously chosen port not detected

parent 7c5efbd6
...@@ -355,7 +355,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -355,7 +355,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
scan=self.scanserial() scan=self.scanserial()
portslist=list(scan) portslist=list(scan)
if self.settings.port != "" and self.settings.port not in portslist: if self.settings.port != "" and self.settings.port not in portslist:
portslist = [self.settings.port]+portslist portslist += [self.settings.port]
self.serialport.Clear() self.serialport.Clear()
self.serialport.AppendItems(portslist) self.serialport.AppendItems(portslist)
try: try:
......
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