Merge pull request #1644 from jdede/setBaudrate

Do not use setBaudrate
This commit is contained in:
Antonio Lignan 2016-05-14 16:27:59 +02:00
commit 171f02a75a
3 changed files with 6 additions and 3 deletions

View File

@ -1162,8 +1162,9 @@ class BootStrapLoader(LowLevel):
sys.stderr.flush()
self.bslTxRx(self.BSL_CHANGEBAUD, #Command: change baudrate
a, l) #args are coded in adr and len
self.serialport.flush()
time.sleep(0.010) #recomended delay
self.serialport.setBaudrate(baudrate)
self.serialport.baudrate = baudrate
def actionReadBSLVersion(self):
"""informational output of BSL version number.

View File

@ -1350,8 +1350,9 @@ class BootStrapLoader(LowLevel):
sys.stderr.flush()
self.bslTxRx(self.BSL_CHANGEBAUD, #Command: change baudrate
a, l) #args are coded in adr and len
self.serialport.flush()
time.sleep(0.010) #recomended delay
self.serialport.setBaudrate(baudrate)
self.serialport.baudrate = baudrate
def actionReadBSLVersion(self):
"""informational output of BSL version number.

View File

@ -1364,8 +1364,9 @@ class BootStrapLoader(LowLevel):
sys.stderr.flush()
self.bslTxRx(self.BSL_CHANGEBAUD, #Command: change baudrate
a, l) #args are coded in adr and len
self.serialport.flush()
time.sleep(0.010) #recomended delay
self.serialport.setBaudrate(baudrate)
self.serialport.baudrate = baudrate
def actionReadBSLVersion(self):
"""informational output of BSL version number.