Commit 0f26512f authored by Nathan Zadoks's avatar Nathan Zadoks

Fixed default ports on windows

parent 345a30e7
......@@ -392,7 +392,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.serialport.Clear()
self.serialport.AppendItems(portslist)
try:
if os.path.exists(self.settings.port):
if os.path.exists(self.settings.port) or self.settings.port.upper().startswith('COM'):
self.serialport.SetValue(self.settings.port)
elif len(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