Commit 0f55bce7 authored by kliment's avatar kliment

Merge pull request #134 from FrozenFire/master

Fixed default ports on windows.
parents 345a30e7 0f26512f
...@@ -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 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) 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