do not use setBaudrate

This commit is contained in:
Jens Dede 2016-05-02 18:48:16 +02:00
parent 0e9234dce6
commit cd7885ae76
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.