Allow read_string_generic to timeout even when some chars have been received

pull/943/head
Mike Black W9MDB 2022-01-20 17:04:20 -06:00
rodzic 8585a04284
commit 1eb474f2e6
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1258,7 +1258,8 @@ static int read_string_generic(hamlib_port_t *p,
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 */
gettimeofday(&end_time, NULL);