From 0c19124984b0592674a081887d9e5e25da60ff40 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 18 Aug 2010 08:06:35 +0000 Subject: [PATCH] Increase UART timeout to gain in stability. --- libnfc/buses/uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/buses/uart.c b/libnfc/buses/uart.c index 45d555d..9a43937 100644 --- a/libnfc/buses/uart.c +++ b/libnfc/buses/uart.c @@ -50,10 +50,10 @@ typedef struct { term_info tiNew; // Terminal info during the transaction } serial_port_unix; -// Set time-out on 30 miliseconds +// timeval struct that define timeout delay for serial port const struct timeval timeout = { .tv_sec = 0, // 0 second - .tv_usec = 50000 // 50 ms + .tv_usec = 60000 // 60 ms }; // Work-around to claim uart interface using the c_iflag (software input processing) from the termios struct