From 65a2101aff39e9db2891be233f37e5f05a795f7c Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Mon, 1 Aug 2022 15:02:22 -0500 Subject: [PATCH] Another attempt to fix x108g_set_ptt --- rigs/icom/xiegu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/icom/xiegu.c b/rigs/icom/xiegu.c index 2c56238b8..c27d7be90 100644 --- a/rigs/icom/xiegu.c +++ b/rigs/icom/xiegu.c @@ -879,7 +879,7 @@ int x108g_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) } /* X108G doesn't quite follow ICOM protocol -- returns 0x1c instead of 0xfb */ - if (ack_len != 3 || (ackbuf[0] != 0x1c && ackbuf[0] != 0xfb)) + if (ackbuf[0] != 0xfb && (ack_len != 3 || ackbuf[0] != 0x1c)) { rig_debug(RIG_DEBUG_ERR, "%s: ack NG (%#.2x), len=%d, ptt=%d\n", __func__, ackbuf[0], ack_len, ptt);