fix high boudrate exception
This commit is contained in:
parent
b38a668019
commit
10d63ec2cc
@ -404,8 +404,12 @@ class Port:
|
|||||||
print("\r\t\t\t\t\rChecking port speed:", s, end=' ')
|
print("\r\t\t\t\t\rChecking port speed:", s, end=' ')
|
||||||
sys.stdout.flush ()
|
sys.stdout.flush ()
|
||||||
|
|
||||||
|
try:
|
||||||
self.hdr.baudrate = s
|
self.hdr.baudrate = s
|
||||||
self.hdr.flushInput ()
|
self.hdr.flushInput ()
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
self.write ("\r")
|
self.write ("\r")
|
||||||
|
|
||||||
# search > string
|
# search > string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user