kopia lustrzana https://github.com/Hamlib/Hamlib
Make kenwood set_split_vfo behave the same as set_vfo in both directions
https://github.com/Hamlib/Hamlib/issues/746pull/779/head
rodzic
36387c8af7
commit
f6b57e147d
|
@ -1119,7 +1119,7 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
|
||||||
snprintf(cmdbuf, sizeof(cmdbuf), "FR%c", vfo_function);
|
snprintf(cmdbuf, sizeof(cmdbuf), "FR%c", vfo_function);
|
||||||
|
|
||||||
// as we change VFO we will change split to the other VFO
|
// as we change VFO we will change split to the other VFO
|
||||||
// some rigs turn split off with FR command
|
// some rigs turn split off with FR command
|
||||||
if (priv->split)
|
if (priv->split)
|
||||||
{
|
{
|
||||||
if (vfo_function == '0')
|
if (vfo_function == '0')
|
||||||
|
@ -1273,6 +1273,18 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
|
||||||
// So we'll turn it back on just in case
|
// So we'll turn it back on just in case
|
||||||
if (split && vfo_function == '0') { strcat(cmdbuf, ";FT1"); }
|
if (split && vfo_function == '0') { strcat(cmdbuf, ";FT1"); }
|
||||||
|
|
||||||
|
if (priv->split)
|
||||||
|
{
|
||||||
|
if (vfo_function == '0')
|
||||||
|
{
|
||||||
|
strcat(cmdbuf, ";FT1");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcat(cmdbuf, ";FT0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
retval = kenwood_transaction(rig, cmdbuf, NULL, 0);
|
retval = kenwood_transaction(rig, cmdbuf, NULL, 0);
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20210828"
|
#define BACKEND_VER "20210829"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
Ładowanie…
Reference in New Issue