Fix kenwood_get_power_minmax for TS890S

https://github.com/Hamlib/Hamlib/issues/399
pull/425/head
Michael Black W9MDB 2020-10-21 16:18:52 -05:00
rodzic f52007d02d
commit b8a29430ad
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -2261,6 +2261,11 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min,
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
if (RIG_IS_TS890S)
{
cmd = "PC;PC005;PC;PC255;PC;PC005;";
}
// Don't do this if PTT is on...don't want to max out power!!
if (rig->state.cache.ptt == RIG_PTT_ON)
{
@ -3742,7 +3747,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;
return -RIG_ENAVAIL;
case RIG_MODEL_TS990S:
return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI2" : "AI0", NULL, 0);
break;

Wyświetl plik

@ -27,7 +27,7 @@
#include <string.h>
#include "token.h"
#define BACKEND_VER "20201006"
#define BACKEND_VER "20201026"
#define EOM_KEN ';'
#define EOM_TH '\r'