Fixed default ports on windows

master
Nathan Zadoks 2011-12-15 22:12:05 +01:00
parent 345a30e76d
commit 0f26512f7d
1 changed files with 1 additions and 1 deletions

View File

@ -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])