Fix cppcheck item in icom.c

pull/224/head
Michael Black 2020-03-16 11:56:34 -05:00
rodzic b54d6a6205
commit f90046516e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3662,7 +3662,6 @@ int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq)
// This eliminates VFO swapping and improves split operations
if (priv->x25cmdfails == 0)
{
int cmd, subcmd, freq_len;
int satmode = 0;
// retval not important here...only satmode=1 means anything
rig_get_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, &satmode);
@ -3670,6 +3669,7 @@ int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq)
if (satmode == 0) // only worth trying if not in satmode
{
int cmd, subcmd, freq_len;
unsigned char freqbuf[32];
freq_len = priv->civ_731_mode ? 4 : 5;
/*