Commit 7fd5c664 authored by kliment's avatar kliment

Fix connect command parsing

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