Fix TenTec OmniVII get_mode for VFOB

pull/17/head
Michael Black W9MDB 2018-04-25 12:42:34 -05:00
rodzic b19a9138a6
commit 4c78fce7fb
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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];
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) {
rig_debug(RIG_DEBUG_ERR,"%s: unsupported VFO %s\n", __FUNCTION__, rig_strvfo(vfo));
return -RIG_EINVAL;
}
if (vfo == RIG_VFO_CURR) {
vfo = priv->vfo_curr;
}
// Query mode
cmd_len = sprintf((char *) cmdbuf, "?M" EOM);
resp_len = 4;