From 7ee6125ef635c112e0b392ac5e60613e630bba7b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 30 Apr 2019 13:01:55 +0200 Subject: [PATCH] fixes.. --- uart/uart_posix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uart/uart_posix.c b/uart/uart_posix.c index 67802645a..a39fb7d89 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -70,11 +70,11 @@ typedef struct { // see usb_cmd.h struct timeval timeout = { .tv_sec = 0, // 0 second - .tv_usec = UART_FPC_CLIENT_RX_TIMEOUT_US + .tv_usec = UART_FPC_CLIENT_RX_TIMEOUT_MS * 1000 }; bool uart_reconfigure_timeouts(serial_port *sp, uint32_t value ) { - timeout.usec = value * 1000; + timeout.tv_usec = value * 1000; } serial_port uart_open(const char *pcPortName, uint32_t speed) { @@ -91,7 +91,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) { return INVALID_SERIAL_PORT; } - timeout.tv_usec = UART_TCP_CLIENT_RX_TIMEOUT_US; + timeout.tv_usec = UART_TCP_CLIENT_RX_TIMEOUT_MS * 1000; char *colon = strrchr(addrstr, ':'); const char *portstr;