Fix bogus "not supported" message when icom_set_mode_x26 is called

pull/846/head
Mike Black W9MDB 2021-10-16 23:29:05 -05:00
rodzic 7f1faf24c0
commit 6c43e5c6ac
1 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -2131,21 +2131,21 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode,
TRACE;
retval =
icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, 1, ackbuf, &ack_len);
}
if (retval != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "%s: protocol error (%#.2x), len=%d\n",
__func__, ackbuf[0], ack_len);
}
else
{
if (ack_len != 1 || (ack_len >= 1 && ackbuf[0] != ACK))
if (retval != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR,
"%s: command not supported ? (%#.2x), len=%d\n",
rig_debug(RIG_DEBUG_ERR, "%s: protocol error (%#.2x), len=%d\n",
__func__, ackbuf[0], ack_len);
}
else
{
if (ack_len != 1 || (ack_len >= 1 && ackbuf[0] != ACK))
{
rig_debug(RIG_DEBUG_ERR,
"%s: command not supported ? (%#.2x), len=%d\n",
__func__, ackbuf[0], ack_len);
}
}
}
}
icom_set_dsp_flt(rig, mode, width);