Fixed connect command when no ports found by scan
parent
6a130c7bc6
commit
62515bedf1
|
@ -46,7 +46,9 @@ class pronsole(cmd.Cmd):
|
|||
def do_connect(self,l):
|
||||
a=l.split()
|
||||
p=self.scanserial()
|
||||
port=p[0]
|
||||
port=None
|
||||
if len(p)>0:
|
||||
port=p[0]
|
||||
baud=115200
|
||||
if(len(a)>1):
|
||||
port=a[0]
|
||||
|
|
Loading…
Reference in New Issue