kopia lustrzana https://github.com/Hamlib/Hamlib
Use correct function to execute set type commands with no response
rodzic
ca77efcc04
commit
a924165786
|
@ -2550,13 +2550,11 @@ int kenwood_set_trn(RIG *rig, int trn)
|
||||||
|
|
||||||
if (RIG_MODEL_TS990S == rig->caps->rig_model)
|
if (RIG_MODEL_TS990S == rig->caps->rig_model)
|
||||||
{
|
{
|
||||||
return kenwood_simple_transaction(rig,
|
return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI2" : "AI0", NULL, 0);
|
||||||
(trn == RIG_TRN_RIG) ? "AI2" : "AI0", 0);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return kenwood_simple_transaction(rig,
|
return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI1" : "AI0", NULL, 0);
|
||||||
(trn == RIG_TRN_RIG) ? "AI1" : "AI0", 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2592,8 +2590,7 @@ int kenwood_set_powerstat(RIG *rig, powerstat_t status)
|
||||||
if (!rig)
|
if (!rig)
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
|
|
||||||
return kenwood_simple_transaction(rig,
|
return kenwood_transaction(rig, (status == RIG_POWER_ON) ? "PS1" : "PS0", NULL, 0);
|
||||||
(status == RIG_POWER_ON) ? "PS1" : "PS0", 4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Ładowanie…
Reference in New Issue