Increase timeout of DFU characteristic discovery to fix failed attempts to OTA with dfu.py.
This commit is contained in:
parent
0e97db1c30
commit
f0e1f98823
|
@ -162,7 +162,7 @@ class NrfBleDfuController(object, metaclass=ABCMeta):
|
||||||
self.ble_conn.sendline('characteristics')
|
self.ble_conn.sendline('characteristics')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.ble_conn.expect([uuid], timeout=2)
|
self.ble_conn.expect([uuid], timeout=10)
|
||||||
handles = re.findall(b'.*handle: (0x....),.*char value handle: (0x....)', self.ble_conn.before)
|
handles = re.findall(b'.*handle: (0x....),.*char value handle: (0x....)', self.ble_conn.before)
|
||||||
(handle, value_handle) = handles[-1]
|
(handle, value_handle) = handles[-1]
|
||||||
except pexpect.TIMEOUT as e:
|
except pexpect.TIMEOUT as e:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user