Commit 7fd5c664 authored by kliment's avatar kliment

Fix connect command parsing

parent 3731e91d
......@@ -146,9 +146,9 @@ class pronsole(cmd.Cmd):
if len(p)>0:
port=p[0]
baud=115200
if(len(a)>1):
if(len(a)>0):
port=a[0]
if(len(a)>2):
if(len(a)>1):
try:
baud=int(a[1])
except:
......
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