Commit 62515bed authored by kliment's avatar kliment

Fixed connect command when no ports found by scan

parent 6a130c7b
...@@ -46,7 +46,9 @@ class pronsole(cmd.Cmd): ...@@ -46,7 +46,9 @@ class pronsole(cmd.Cmd):
def do_connect(self,l): def do_connect(self,l):
a=l.split() a=l.split()
p=self.scanserial() p=self.scanserial()
port=p[0] port=None
if len(p)>0:
port=p[0]
baud=115200 baud=115200
if(len(a)>1): if(len(a)>1):
port=a[0] port=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