From 7520a3a70289a7f973dd0416189a898ef343271a Mon Sep 17 00:00:00 2001 From: Weston Bustraan Date: Wed, 17 Jun 2020 19:59:53 -0400 Subject: [PATCH] DX-SR8 echos back the command sent to it. Need to read past that to get to the next line containing the value --- rigs/alinco/dxsr8.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rigs/alinco/dxsr8.c b/rigs/alinco/dxsr8.c index 5d26e862d..fa5be083c 100644 --- a/rigs/alinco/dxsr8.c +++ b/rigs/alinco/dxsr8.c @@ -260,6 +260,18 @@ int dxsr8_transaction(RIG *rig, return retval; } + /* + * Transceiver sends an echo of cmd followed by a CR/LF + * TODO: check whether cmd and echobuf match (optional) + */ + retval = read_string(&rs->rigport, replybuf, BUFSZ, LF, strlen(LF)); + + if (retval < 0) + { + return retval; + } + + retval = read_string(&rs->rigport, replybuf, BUFSZ, LF, strlen(LF)); if (retval < 0)