kopia lustrzana https://github.com/Hamlib/Hamlib
Add kenwood_stop_voice and fix TS890S send_voice
rodzic
4df8260cc1
commit
8a4767db17
|
@ -5346,9 +5346,19 @@ int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank)
|
|||
char cmd[16];
|
||||
ENTERFUNC;
|
||||
|
||||
#if 0 // don't really need to turn on the list
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB01");
|
||||
kenwood_transaction(rig, cmd, NULL, 0);
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB1%d", bank);
|
||||
#endif
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB1%d1", bank);
|
||||
RETURNFUNC(kenwood_transaction(rig, cmd, NULL, 0));
|
||||
}
|
||||
|
||||
int kenwood_stop_voice_mem(RIG *rig, vfo_t vfo)
|
||||
{
|
||||
char cmd[16];
|
||||
ENTERFUNC;
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB0");
|
||||
RETURNFUNC(kenwood_transaction(rig, cmd, NULL, 0));
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "token.h"
|
||||
#include "idx_builtin.h"
|
||||
|
||||
#define BACKEND_VER "20230825"
|
||||
#define BACKEND_VER "20230914"
|
||||
|
||||
#define EOM_KEN ';'
|
||||
#define EOM_TH '\r'
|
||||
|
@ -254,6 +254,7 @@ const char *kenwood_get_info(RIG *rig);
|
|||
int kenwood_get_id(RIG *rig, char *buf);
|
||||
int kenwood_get_if(RIG *rig);
|
||||
int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank);
|
||||
int kenwood_stop_voice_mem(RIG *rig, vfo_t vfo);
|
||||
|
||||
int kenwood_set_trn(RIG *rig, int trn);
|
||||
int kenwood_get_trn(RIG *rig, int *trn);
|
||||
|
|
|
@ -416,7 +416,7 @@ const struct rig_caps ts890s_caps =
|
|||
RIG_MODEL(RIG_MODEL_TS890S),
|
||||
.model_name = "TS-890S",
|
||||
.mfg_name = "Kenwood",
|
||||
.version = BACKEND_VER ".11",
|
||||
.version = BACKEND_VER ".12",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -557,6 +557,7 @@ const struct rig_caps ts890s_caps =
|
|||
.send_morse = kenwood_send_morse,
|
||||
.stop_morse = kenwood_stop_morse,
|
||||
.send_voice_mem = kenwood_send_voice_mem,
|
||||
.stop_voice_mem = kenwood_stop_voice_mem,
|
||||
.wait_morse = rig_wait_morse,
|
||||
.scan = kenwood_scan, /* not working, invalid arguments using rigctl; kenwood_scan does only support on/off and not tone and CTCSS scan */
|
||||
.has_set_level = TS890_LEVEL_SET,
|
||||
|
|
Ładowanie…
Reference in New Issue