Fix non-targetable VFO Icom rigs (e.g. IC7100) error during open routine by call get_freq first to establish echo on or off

https://github.com/Hamlib/Hamlib/issues/1358
pull/1349/head
Mike Black W9MDB 2023-08-07 17:21:39 -05:00
rodzic dfb923e001
commit 55370c1e64
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -2317,6 +2317,15 @@ int HAMLIB_API rig_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
}
HAMLIB_TRACE;
retcode = caps->get_freq(rig, vfo, freq);
if (retcode != RIG_OK)
{
ELAPSED2;
LOCK(0);
RETURNFUNC(retcode);
}
retcode = caps->set_vfo(rig, vfo);
if (retcode != RIG_OK)
@ -7773,6 +7782,7 @@ static int async_data_handler_start(RIG *rig)
rs->async_data_enabled);
RETURNFUNC(RIG_OK);
}
sleep(2); // give other things a chance to finish opening up the rig
#ifdef HAVE_PTHREAD