kopia lustrzana https://github.com/Hamlib/Hamlib
Fix TenTec OmniVII get_mode for VFOB
rodzic
b19a9138a6
commit
4c78fce7fb
|
@ -521,10 +521,17 @@ int tt588_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||||
unsigned char cmdbuf[16], respbuf[32];
|
unsigned char cmdbuf[16], respbuf[32];
|
||||||
char ttmode;
|
char ttmode;
|
||||||
|
|
||||||
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo=%s\n", __FUNCTION__, rig_strvfo(vfo));
|
||||||
|
|
||||||
|
struct tt588_priv_data *priv = (struct tt588_priv_data *) rig->state.priv;
|
||||||
|
|
||||||
if(check_vfo(vfo)==FALSE) {
|
if(check_vfo(vfo)==FALSE) {
|
||||||
rig_debug(RIG_DEBUG_ERR,"%s: unsupported VFO %s\n", __FUNCTION__, rig_strvfo(vfo));
|
rig_debug(RIG_DEBUG_ERR,"%s: unsupported VFO %s\n", __FUNCTION__, rig_strvfo(vfo));
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
|
if (vfo == RIG_VFO_CURR) {
|
||||||
|
vfo = priv->vfo_curr;
|
||||||
|
}
|
||||||
// Query mode
|
// Query mode
|
||||||
cmd_len = sprintf((char *) cmdbuf, "?M" EOM);
|
cmd_len = sprintf((char *) cmdbuf, "?M" EOM);
|
||||||
resp_len = 4;
|
resp_len = 4;
|
||||||
|
|
Ładowanie…
Reference in New Issue