Fix Kenwood rigs that turn split off during FR command by turning split back on if needed

https://github.com/Hamlib/Hamlib/issues/746
pull/775/head
Mike Black W9MDB 2021-08-22 16:47:29 -05:00
rodzic 547bd0fb55
commit 0965a4382c
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1115,6 +1115,9 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
}
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)
{
@ -1251,6 +1254,9 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
/* set RX VFO */
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);
if (retval != RIG_OK)

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"
#define BACKEND_VER "20210809"
#define BACKEND_VER "20210822"
#define EOM_KEN ';'
#define EOM_TH '\r'