Omni VII to set VFO_CURR correctly

Attached small patch allows Omni VII to set VFO_CURR correctly.

Sending this via gmail since my yahoo account doesn't get along with the
sourceforge lists.

73

Mike W9MDB
Hamlib-3.0
Michael Black 2015-05-23 10:36:53 -05:00 zatwierdzone przez Nate Bargmann
rodzic e780f2dc66
commit 3f1bde0890
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -405,6 +405,10 @@ int tt588_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) {
int cmd_len, resp_len, retval;
unsigned char cmdbuf[16], respbuf[32];
struct tt588_priv_data *priv = (struct tt588_priv_data *) rig->state.priv;
if (vfo == RIG_VFO_CURR)
vfo = priv->vfo_curr;
if(check_vfo(vfo)==FALSE) {
rig_debug(RIG_DEBUG_ERR,"%s: unsupported VFO %s\n", __FUNCTION__, rig_strvfo(vfo));