do not use setBaudrate
This commit is contained in:
parent
0e9234dce6
commit
cd7885ae76
3 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue