kopia lustrzana https://github.com/Hamlib/Hamlib
Fix Kenwood rigs that turn split off during FR command by turning split back on if needed
https://github.com/Hamlib/Hamlib/issues/746pull/775/head
rodzic
547bd0fb55
commit
0965a4382c
|
@ -1115,6 +1115,9 @@ 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);
|
||||||
|
// FR can turn off split on some Kenwood rigs
|
||||||
|
// So we'll turn it back on just in case
|
||||||
|
if (priv->split) strcat(cmdbuf,"FT1;");
|
||||||
|
|
||||||
if (RIG_IS_TS50 || RIG_IS_TS940)
|
if (RIG_IS_TS50 || RIG_IS_TS940)
|
||||||
{
|
{
|
||||||
|
@ -1251,6 +1254,9 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
|
||||||
|
|
||||||
/* set RX VFO */
|
/* set RX VFO */
|
||||||
snprintf(cmdbuf, sizeof(cmdbuf), "FR%c", vfo_function);
|
snprintf(cmdbuf, sizeof(cmdbuf), "FR%c", vfo_function);
|
||||||
|
// FR can turn off split on some Kenwood rigs
|
||||||
|
// So we'll turn it back on just in case
|
||||||
|
if (priv->split) strcat(cmdbuf,"FT1;");
|
||||||
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 "20210809"
|
#define BACKEND_VER "20210822"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
Ładowanie…
Reference in New Issue