Fix rigctlcom split indication in IF generation

Add some debug to see the cmd being requested by the client
https://github.com/Hamlib/Hamlib/issues/272
pull/281/head
Michael Black W9MDB 2020-06-01 12:11:15 -05:00
rodzic 17109382b0
commit 207c50f36b
1 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -704,6 +704,7 @@ static int write_block2(void *func,
*/
static int handle_ts2000(void *arg)
{
rig_debug(RIG_DEBUG_VERBOSE, "%s: cmd=%s\n", __func__, (char*)arg);
// Handle all the queries
if (strcmp(arg, "ID;") == 0)
{
@ -752,15 +753,16 @@ static int handle_ts2000(void *arg)
return retval;
}
if (ptt)
// we need to know split status -- don't care about the vfo
retval = rig_get_split_vfo(my_rig, RIG_VFO_CURR, &split, &vfo);
if (retval != RIG_OK)
{
retval = rig_get_split_vfo(my_rig, RIG_VFO_CURR, &split, &vfo);
}
else
{
retval = rig_get_vfo(my_rig, &vfo);
return retval;
}
retval = rig_get_vfo(my_rig, &vfo);
if (retval != RIG_OK)
{
return retval;