kopia lustrzana https://github.com/Hamlib/Hamlib
Fix kenwood_get_power_minmax for TS890S
https://github.com/Hamlib/Hamlib/issues/399
(cherry picked from commit b8a29430ad
)
Hamlib-4.0
rodzic
49f1396c31
commit
5f8ac53163
|
@ -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__);
|
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!!
|
// Don't do this if PTT is on...don't want to max out power!!
|
||||||
if (rig->state.cache.ptt == RIG_PTT_ON)
|
if (rig->state.cache.ptt == RIG_PTT_ON)
|
||||||
{
|
{
|
||||||
|
@ -3743,6 +3748,7 @@ int kenwood_set_trn(RIG *rig, int trn)
|
||||||
{
|
{
|
||||||
case RIG_MODEL_POWERSDR: // powersdr doesn't have AI command
|
case RIG_MODEL_POWERSDR: // powersdr doesn't have AI command
|
||||||
return -RIG_ENAVAIL;
|
return -RIG_ENAVAIL;
|
||||||
|
|
||||||
case RIG_MODEL_TS990S:
|
case RIG_MODEL_TS990S:
|
||||||
return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI2" : "AI0", NULL, 0);
|
return kenwood_transaction(rig, (trn == RIG_TRN_RIG) ? "AI2" : "AI0", NULL, 0);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20201006"
|
#define BACKEND_VER "20201026"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
Ładowanie…
Reference in New Issue