mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-17 21:13:46 +00:00
Increase UART timeout to gain in stability.
This commit is contained in:
@@ -50,10 +50,10 @@ typedef struct {
|
|||||||
term_info tiNew; // Terminal info during the transaction
|
term_info tiNew; // Terminal info during the transaction
|
||||||
} serial_port_unix;
|
} serial_port_unix;
|
||||||
|
|
||||||
// Set time-out on 30 miliseconds
|
// timeval struct that define timeout delay for serial port
|
||||||
const struct timeval timeout = {
|
const struct timeval timeout = {
|
||||||
.tv_sec = 0, // 0 second
|
.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
|
// Work-around to claim uart interface using the c_iflag (software input processing) from the termios struct
|
||||||
|
|||||||
Reference in New Issue
Block a user