Increase UART timeout to gain in stability.
This commit is contained in:
parent
eeaad85151
commit
0c19124984
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue