fix high boudrate exception

This commit is contained in:
shrlnm 2023-03-30 10:48:52 +03:00
parent b38a668019
commit 10d63ec2cc

View File

@ -404,8 +404,12 @@ class Port:
print("\r\t\t\t\t\rChecking port speed:", s, end=' ')
sys.stdout.flush ()
self.hdr.baudrate = s
self.hdr.flushInput ()
try:
self.hdr.baudrate = s
self.hdr.flushInput ()
except:
continue
self.write ("\r")
# search > string