Wait for up to 2 minutes after tftp upload
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 20:55:19 +0000 (21:55 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 20:55:19 +0000 (21:55 +0100)
README.md
main.c

index 3cde8b858d9aecf71811f96b522b35aa2a932919..e967c5613d84e12fad18cd755e5676716b9bca0b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -73,12 +73,12 @@ not support the NMRP protocol.
 
 ###### Timeout while waiting for 0x04.
 
-After a successful file upload, `nmrpflash` waits for up to 60 seconds for an
+After a successful file upload, `nmrpflash` waits for up to 120 seconds for an
 answer from your device. You can increase this by specifying a longer timeout
 using `-T` switch (argument is in seconds).
 
 It's entirely possible that the image was flashed successfully, but the
-operation took longer than 60 seconds.
+operation took longer than 120 seconds.
 
 ### Building and installing
 ###### Linux, Mac OS X, BSDs
diff --git a/main.c b/main.c
index 39fc226a1e91acc299d4b44966dcd07c9f8dee1c..b1b080c5b84fd0933d72658d619c43f0204e08c3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
        int c, val, max;
        struct nmrpd_args args = {
                .rx_timeout = 200,
-               .ul_timeout = 60000,
+               .ul_timeout = 120000,
                .tftpcmd = NULL,
                .filename = NULL,
                .ipaddr = NULL,