From f0e1f98823e41bfc2d9743fa8de70c882f26f93b Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 8 Nov 2020 11:35:15 +0100 Subject: [PATCH] Increase timeout of DFU characteristic discovery to fix failed attempts to OTA with dfu.py. --- bootloader/ota-dfu-python/nrf_ble_dfu_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/ota-dfu-python/nrf_ble_dfu_controller.py b/bootloader/ota-dfu-python/nrf_ble_dfu_controller.py index 85de15a6..ef61fa38 100644 --- a/bootloader/ota-dfu-python/nrf_ble_dfu_controller.py +++ b/bootloader/ota-dfu-python/nrf_ble_dfu_controller.py @@ -162,7 +162,7 @@ class NrfBleDfuController(object, metaclass=ABCMeta): self.ble_conn.sendline('characteristics') 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) (handle, value_handle) = handles[-1] except pexpect.TIMEOUT as e: