kopia lustrzana https://github.com/Hamlib/Hamlib
Fix Kenwood PB command to stop last requested voice channel started
https://github.com/Hamlib/Hamlib/issues/1385pull/1389/head
rodzic
0bee582095
commit
5115fa8959
|
@ -5344,6 +5344,7 @@ int kenwood_stop_morse(RIG *rig, vfo_t vfo)
|
|||
int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank)
|
||||
{
|
||||
char cmd[16];
|
||||
struct kenwood_priv_data *priv = rig->state.priv;
|
||||
ENTERFUNC;
|
||||
|
||||
#if 0 // don't really need to turn on the list
|
||||
|
@ -5351,14 +5352,16 @@ int kenwood_send_voice_mem(RIG *rig, vfo_t vfo, int bank)
|
|||
kenwood_transaction(rig, cmd, NULL, 0);
|
||||
#endif
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB1%d1", bank);
|
||||
priv->voice_bank = bank;
|
||||
RETURNFUNC(kenwood_transaction(rig, cmd, NULL, 0));
|
||||
}
|
||||
|
||||
int kenwood_stop_voice_mem(RIG *rig, vfo_t vfo)
|
||||
{
|
||||
char cmd[16];
|
||||
struct kenwood_priv_data *priv = rig->state.priv;
|
||||
ENTERFUNC;
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB0");
|
||||
SNPRINTF(cmd, sizeof(cmd), "PB1%d0", priv->voice_bank);
|
||||
RETURNFUNC(kenwood_transaction(rig, cmd, NULL, 0));
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "token.h"
|
||||
#include "idx_builtin.h"
|
||||
|
||||
#define BACKEND_VER "20230914"
|
||||
#define BACKEND_VER "20230916"
|
||||
|
||||
#define EOM_KEN ';'
|
||||
#define EOM_TH '\r'
|
||||
|
@ -178,6 +178,7 @@ struct kenwood_priv_data
|
|||
int question_mark_response_means_rejected; /* the question mark response has multiple meanings */
|
||||
int save_k2_ext_lvl; // so we can restore to original
|
||||
int save_k3_ext_lvl; // so we can restore to original -- for future use if needed
|
||||
int voice_bank; /* last voice bank send for use by stop_voice_mem */
|
||||
};
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue