Commit d39f3422 authored by Keegi's avatar Keegi

Don't auto-pick last used port when that port is not in detected ports list

parent 5ea05777
...@@ -144,7 +144,7 @@ class pronsole(cmd.Cmd): ...@@ -144,7 +144,7 @@ class pronsole(cmd.Cmd):
a=l.split() a=l.split()
p=self.scanserial() p=self.scanserial()
port=self.lastport[0] port=self.lastport[0]
if port is None and len(p)>0: if (port is None or port not in p) and len(p)>0:
port=p[0] port=p[0]
baud=self.lastport[1] or 115200 baud=self.lastport[1] or 115200
if(len(a)>0): if(len(a)>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