projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53fb848
)
Fix for USB uart slowness since PR #720 (#787)
author
Fl0-0
<Fl0-0@users.noreply.github.com>
Sun, 17 Feb 2019 13:43:40 +0000
(14:43 +0100)
committer
pwpiwi
<pwpiwi@users.noreply.github.com>
Sun, 17 Feb 2019 13:43:40 +0000
(14:43 +0100)
uart/uart_posix.c
patch
|
blob
|
blame
|
history
diff --git
a/uart/uart_posix.c
b/uart/uart_posix.c
index 1db375b2ffa0f7d42f2f30e98a7a81cd0e94417d..214cb56a26b910d24c08f6f42a43c12fae54c471 100644
(file)
--- a/
uart/uart_posix.c
+++ b/
uart/uart_posix.c
@@
-69,9
+69,9
@@
typedef struct {
} serial_port_unix;
// Set time-out on 30 miliseconds
-
const
struct timeval timeout = {
+struct timeval timeout = {
.tv_sec = 0, // 0 second
- .tv_usec = 30000
0 // 30
0000 micro seconds
+ .tv_usec = 30000
// 3
0000 micro seconds
};
serial_port uart_open(const char* pcPortName)
@@
-88,6
+88,10
@@
serial_port uart_open(const char* pcPortName)
}
char *colon = strrchr(addrstr, ':');
char *portstr;
+
+ // Set time-out to 300 miliseconds only for TCP port
+ timeout.tv_usec = 300000;
+
if (colon) {
portstr = colon + 1;
*colon = '\0';
Impressum
,
Datenschutz