For all kenwoods query split and don't change if not needed

https://github.com/Hamlib/Hamlib/issues/744
pull/750/head
Mike Black W9MDB 2021-07-17 17:02:42 -05:00
rodzic 4e4c93ff73
commit e966508b3a
2 zmienionych plików z 8 dodań i 9 usunięć

Wyświetl plik

@ -1273,15 +1273,14 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
priv->tx_vfo = txvfo;
if (RIG_IS_K2 || RIG_IS_K3)
/* do not attempt redundant split change commands on Elecraft as
they impact output power when transmitting
and all other rigs don't need to set it if it's already set correctly
*/
if (RIG_OK == (retval = kenwood_safe_transaction(rig, "FT", cmdbuf,
sizeof(cmdbuf), 3)))
{
/* do not attempt redundant split change commands on Elecraft as
they impact output power when transmitting */
if (RIG_OK == (retval = kenwood_safe_transaction(rig, "FT", cmdbuf,
sizeof(cmdbuf), 3)))
{
if (cmdbuf[2] == vfo_function) { RETURNFUNC(RIG_OK); }
}
if (cmdbuf[2] == vfo_function) { RETURNFUNC(RIG_OK); }
}
/* set TX VFO */

Wyświetl plik

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