kopia lustrzana https://github.com/Hamlib/Hamlib
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/272pull/281/head
rodzic
17109382b0
commit
207c50f36b
tests
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue