Fix cppcheck warning in rig.c

pull/574/head
Michael Black W9MDB 2021-02-28 12:37:54 -06:00
rodzic 9fa3f59684
commit 52703c35d5
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -3834,19 +3834,19 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig,
caps = rig->caps;
int retry = 3;
if (caps->set_split_freq_mode)
{
freq_t tfreq;
int retry = 3;
int retcode2;
// we query freq after set to ensure it really gets done
do
{
retcode = caps->set_split_freq_mode(rig, vfo, tx_freq, tx_mode, tx_width);
retcode = rig_get_split_freq(rig, vfo, &tfreq);
retcode2 = rig_get_split_freq(rig, vfo, &tfreq);
}
while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK);
while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK && retcode2 == RIG_OK);
if (tfreq != tx_freq) { retcode = -RIG_EPROTO; }