diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 5a5ec87bb..528e651d1 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -3741,6 +3741,8 @@ int kenwood_set_trn(RIG *rig, int trn) switch (rig->caps->rig_model) { + case RIG_MODEL_POWERSDR: // powersdr doesn't have AI command + return -RIG_ENAVAIL; case RIG_MODEL_TS990S: return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI2" : "AI0", NULL, 0); break; @@ -3774,7 +3776,7 @@ int kenwood_get_trn(RIG *rig, int *trn) /* these rigs only have AI[0|1] set commands and no AI query */ if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS790 || RIG_IS_TS850 - || RIG_IS_TS950S || RIG_IS_TS950SDX) + || RIG_IS_TS950S || RIG_IS_TS950SDX || RIG_IS_POWERSDR) { return -RIG_ENAVAIL; } diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index 3415d9505..f327baf06 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -100,7 +100,8 @@ extern const struct confparams kenwood_cfg_params[]; #define RIG_IS_TS950S (rig->caps->rig_model == RIG_MODEL_TS950S) #define RIG_IS_TS990S (rig->caps->rig_model == RIG_MODEL_TS990S) #define RIG_IS_XG3 (rig->caps->rig_model == RIG_MODEL_XG3) -#define RIG_IS_PT8000A (rig->caps->rig_model == RIG_MODEL_PT8000A) +#define RIG_IS_PT8000A (rig->caps->rig_model == RIG_MODEL_PT8000A) +#define RIG_IS_POWERSDR (rig->caps->rig_model == RIG_MODEL_POWERSDR) struct kenwood_priv_caps {