Fix manually entered baudrate reading.

master
kliment 2011-06-01 14:42:35 +02:00
parent b3568cf8fd
commit 36736e3159
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ class pronsole(cmd.Cmd):
if(len(a)>1):
port=a[0]
if(len(a)>2):
baud=a[1]
try:
baud=int(a[1])
except:
pass
if len(p)==0 and port is None:
print "No serial ports detected - please specify a port"
return