kopia lustrzana https://github.com/Hamlib/Hamlib
Allow read_string_generic to timeout even when some chars have been received
rodzic
8585a04284
commit
1eb474f2e6
|
@ -1258,7 +1258,8 @@ static int read_string_generic(hamlib_port_t *p,
|
||||||
|
|
||||||
if (result == -RIG_ETIMEOUT)
|
if (result == -RIG_ETIMEOUT)
|
||||||
{
|
{
|
||||||
if (0 == total_count)
|
// a timeout is a timeout no matter how many bytes
|
||||||
|
//if (0 == total_count)
|
||||||
{
|
{
|
||||||
/* Record timeout time and calculate elapsed time */
|
/* Record timeout time and calculate elapsed time */
|
||||||
gettimeofday(&end_time, NULL);
|
gettimeofday(&end_time, NULL);
|
||||||
|
|
Ładowanie…
Reference in New Issue