kopia lustrzana https://github.com/Hamlib/Hamlib
Disable AI mode on open for Kenwood/Elecraft rigs
rodzic
6165bf9eda
commit
2049533381
|
@ -152,6 +152,11 @@ int elecraft_open(RIG *rig)
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Currently we cannot cope with AI mode so turn it off in case last
|
||||||
|
client left it on */
|
||||||
|
kenwood_set_trn(rig, RIG_TRN_OFF); /* ignore status in case it's not
|
||||||
|
supported */
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -519,7 +519,14 @@ int kenwood_open(RIG *rig)
|
||||||
__func__, kenwood_id_string_list[i].id);
|
__func__, kenwood_id_string_list[i].id);
|
||||||
|
|
||||||
if (kenwood_id_string_list[i].model == rig->caps->rig_model)
|
if (kenwood_id_string_list[i].model == rig->caps->rig_model)
|
||||||
|
{
|
||||||
|
/* Currently we cannot cope with AI mode so turn it off in
|
||||||
|
case last client left it on */
|
||||||
|
kenwood_set_trn(rig, RIG_TRN_OFF); /* ignore status in case
|
||||||
|
it's not supported */
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
|
}
|
||||||
|
|
||||||
/* driver mismatch */
|
/* driver mismatch */
|
||||||
rig_debug(RIG_DEBUG_ERR,
|
rig_debug(RIG_DEBUG_ERR,
|
||||||
|
|
Ładowanie…
Reference in New Issue