From 91a84fac3d3f7ab58ba1205d9e8c4f7b349660bf Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 24 Nov 2016 15:12:19 +0700 Subject: [PATCH] reduce nrfutil wait time to 0.5 second --- tool/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py b/tool/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py index 048b0eb7..d62f14d9 100644 --- a/tool/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py +++ b/tool/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py @@ -51,8 +51,8 @@ class DfuTransportSerial(DfuTransport): DEFAULT_FLOW_CONTROL = False DEFAULT_SERIAL_PORT_TIMEOUT = 1.0 # Timeout time on serial port read ACK_PACKET_TIMEOUT = 1.0 # Timeout time for for ACK packet received before reporting timeout through event system - SEND_INIT_PACKET_WAIT_TIME = 1.0 # Time to wait before communicating with bootloader after init packet is sent - SEND_START_DFU_WAIT_TIME = 10.0 # Time to wait before communicating with bootloader after start DFU packet is sent + SEND_INIT_PACKET_WAIT_TIME = 0.5 # 1.0 # Time to wait before communicating with bootloader after init packet is sent + SEND_START_DFU_WAIT_TIME = 0.5 #10.0 # Time to wait before communicating with bootloader after start DFU packet is sent DFU_PACKET_MAX_SIZE = 512 # The DFU packet max size def __init__(self, com_port, baud_rate=DEFAULT_BAUD_RATE, flow_control=DEFAULT_FLOW_CONTROL, timeout=DEFAULT_SERIAL_PORT_TIMEOUT):