Fixed connect command when no ports found by scan

master
kliment 2011-05-28 21:03:57 +02:00
parent 6a130c7bc6
commit 62515bedf1
1 changed files with 3 additions and 1 deletions

View File

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