fixed #123: implement timeout for wait known usb device apprearuuu_1.3.82
commit9c56e46afcbfdc37ebab8f20b20be0e9b0e7ebf8
authorFrank Li <Frank.Li@nxp.com>
Thu, 19 Sep 2019 22:03:08 +0000 (19 17:03 -0500)
committerFrank Li <Frank.Li@nxp.com>
Thu, 19 Sep 2019 22:03:08 +0000 (19 17:03 -0500)
treecc636f7f275b5af2d63c6bff72dbf65ece8b9744
parent95124b929afbcb7573de013db8a72d4552959070
fixed #123: implement timeout for wait known usb device apprear

if -t is not set, wait forever
uuu -t 10 --> wait 10 seconds for a known USB device to appear. If
expires, returns with an error
uuu -t 0 --> if no known USB device is connected, immediately returns
with error code

Signed-off-by: Frank Li <Frank.Li@nxp.com>
libuuu/cmd.cpp
libuuu/libuuu.h
libuuu/usbhotplug.cpp
uuu/uuu.cpp