kopia lustrzana https://github.com/Hamlib/Hamlib
serial: round up VTIME
Round up the VTIME setting in case the rig timeout is less than 100 ms, which would make the termios timeout infinite.Hamlib-3.0
rodzic
6c370dd36d
commit
212f2c97b2
|
@ -349,7 +349,7 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp)
|
|||
/*
|
||||
* VTIME in deciseconds, rp->timeout in miliseconds
|
||||
*/
|
||||
options.c_cc[VTIME] = rp->timeout / 100;
|
||||
options.c_cc[VTIME] = (rp->timeout + 99) / 100;
|
||||
options.c_cc[VMIN] = 1;
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue