testing out dfu timing
This commit is contained in:
1 parent
8ff9c572b7
commit
3498872289
1 file changed
+4
-1
@@ -80,6 +80,8 @@ class DfuTransportSerial(DfuTransport):
|
||||
except Exception, e:
|
||||
raise NordicSemiException("Serial port could not be opened on {0}. Reason: {1}".format(self.com_port, e.message))
|
||||
|
||||
time.sleep(DfuTransportSerial.SERIAL_PORT_OPEN_WAIT_TIME)
|
||||
|
||||
# Toggle DTR to reset the board and enter DFU mode
|
||||
self.serial_port.setDTR(False)
|
||||
time.sleep(0.05)
|
||||
@@ -87,7 +89,8 @@ class DfuTransportSerial(DfuTransport):
|
||||
time.sleep(0.05)
|
||||
self.serial_port.setDTR(False)
|
||||
|
||||
time.sleep(DfuTransportSerial.SERIAL_PORT_OPEN_WAIT_TIME)
|
||||
# A bit of delay to allow device to boot up
|
||||
time.sleep(0.1)
|
||||
|
||||
def close(self):
|
||||
super(DfuTransportSerial, self).close()
|
||||
|
||||
Reference in new issue
Block a user