From 9b1e0aa07de7443555bf7a01c50639fb47ad883b Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 28 May 2020 13:57:57 +0100 Subject: [PATCH] Fix regression with slow responses from SmartSDR causing errors This has been verified as a fix using SmartSDR v1.10.16 combined with a FlexRadio 6500. --- rigs/kenwood/kenwood.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 8cff18101..adcd69d55 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -360,9 +360,16 @@ transaction_read: retval, retry_read, rs->rigport.retry); // only retry if we expect a response from the command - if (datasize && retry_read++ < rs->rigport.retry) + if (retry_read++ < rs->rigport.retry) { - goto transaction_write; + if (datasize) + { + goto transaction_write; + } + else if (-RIG_ETIMEOUT == retval) + { + goto transaction_read; + } } goto transaction_quit;