Use seconds for -T switch
This commit is contained in:
parent
18f34175fe
commit
f2ad76de41
2 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ not support the NMRP protocol.
|
||||||
|
|
||||||
After a successful file upload, `nmrpflash` waits for up to 60 seconds for an
|
After a successful file upload, `nmrpflash` waits for up to 60 seconds for an
|
||||||
answer from your device. You can increase this by specifying a longer timeout
|
answer from your device. You can increase this by specifying a longer timeout
|
||||||
using `-T` switch (argument is in milliseconds).
|
using `-T` switch (argument is in seconds).
|
||||||
|
|
||||||
It's entirely possible that the image was flashed successfully, but the
|
It's entirely possible that the image was flashed successfully, but the
|
||||||
operation took longer than 60 seconds.
|
operation took longer than 60 seconds.
|
||||||
|
|
|
||||||
4
main.c
4
main.c
|
|
@ -37,7 +37,7 @@ void usage(FILE *fp)
|
||||||
" -m <mac> MAC address of target device (xx:xx:xx:xx:xx:xx)\n"
|
" -m <mac> MAC address of target device (xx:xx:xx:xx:xx:xx)\n"
|
||||||
" -M <netmask> Subnet mask to assign to target device\n"
|
" -M <netmask> Subnet mask to assign to target device\n"
|
||||||
" -t <timeout> Timeout (in milliseconds) for regular messages\n"
|
" -t <timeout> Timeout (in milliseconds) for regular messages\n"
|
||||||
" -T <timeout> Time to wait after successfull TFTP upload\n"
|
" -T <timeout> Time (seconds) to wait after successfull TFTP upload\n"
|
||||||
" -p <port> Port to use for TFTP upload\n"
|
" -p <port> Port to use for TFTP upload\n"
|
||||||
#ifdef NMRPFLASH_TFTP_TEST
|
#ifdef NMRPFLASH_TFTP_TEST
|
||||||
" -U Test TFTP upload\n"
|
" -U Test TFTP upload\n"
|
||||||
|
|
@ -124,7 +124,7 @@ int main(int argc, char **argv)
|
||||||
} else if (c == 't') {
|
} else if (c == 't') {
|
||||||
args.rx_timeout = val;
|
args.rx_timeout = val;
|
||||||
} else {
|
} else {
|
||||||
args.ul_timeout = val;
|
args.ul_timeout = val * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue