diff options
author | David Chiu <dchiu@synaptics.com> | 2021-12-09 16:58:17 +0800 |
---|---|---|
committer | Vincent Huang <vincenthsw@gmail.com> | 2021-12-10 11:17:43 +0800 |
commit | c0a94c67dc4d64cca7193ab0584d8496bc572d8f (patch) | |
tree | 26e633da84fa82bad7fd04825c8468fcff3d09af /rmi4update | |
parent | 894fb799331cada9b23320ffb7325795e55ad066 (diff) | |
download | rmi4utils-c0a94c67dc4d64cca7193ab0584d8496bc572d8f.tar.gz |
Add timeout 10 ms for select() and resend scheme in Read() to avoid indefinitely loop because of wrong report ID in return.
Diffstat (limited to 'rmi4update')
-rwxr-xr-x | rmi4update/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rmi4update/main.cpp b/rmi4update/main.cpp index 8dcd6ec..f10c532 100755 --- a/rmi4update/main.cpp +++ b/rmi4update/main.cpp @@ -27,6 +27,7 @@ #include <time.h> #include <string> #include <sstream> +#include <time.h> #include "hiddevice.h" #include "rmi4update.h" @@ -149,7 +150,7 @@ int main(int argc, char **argv) if (printFirmwareProps) { std::string props; - + if (!deviceName) { fprintf(stderr, "Specifiy which device to query\n"); return 1; |