From 1eb474f2e60094e342a780f85cd9f9f018868bb3 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Thu, 20 Jan 2022 17:04:20 -0600 Subject: [PATCH] Allow read_string_generic to timeout even when some chars have been received --- src/iofunc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iofunc.c b/src/iofunc.c index 8ddeae459..4b38e5f2f 100644 --- a/src/iofunc.c +++ b/src/iofunc.c @@ -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);