kopia lustrzana https://github.com/Hamlib/Hamlib
Added forced cache timeouts for the ft857.
rodzic
58c75aa2fe
commit
8bc10a9fed
|
@ -719,6 +719,8 @@ int ft857_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
/* fill in the frequency */
|
||||
to_bcd_be(data, (freq + 5) / 10, 8);
|
||||
|
||||
rig_force_cache_timeout(&((struct ft857_priv_data *) rig->state.priv)->fm_status_tv);
|
||||
|
||||
return ft857_send_icmd(rig, FT857_NATIVE_CAT_SET_FREQ, data);
|
||||
}
|
||||
|
||||
|
@ -766,6 +768,8 @@ int ft857_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
if (width != RIG_PASSBAND_NORMAL)
|
||||
return -RIG_EINVAL;
|
||||
|
||||
rig_force_cache_timeout(&((struct ft857_priv_data *) rig->state.priv)->fm_status_tv);
|
||||
|
||||
return ft857_send_cmd(rig, index);
|
||||
}
|
||||
|
||||
|
@ -791,6 +795,8 @@ int ft857_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
|||
|
||||
n = ft857_send_cmd(rig, index);
|
||||
|
||||
rig_force_cache_timeout(&((struct ft857_priv_data *) rig->state.priv)->tx_status_tv);
|
||||
|
||||
if (n < 0 && n != -RIG_ERJCTED)
|
||||
return n;
|
||||
|
||||
|
@ -819,6 +825,8 @@ int ft857_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
|
||||
n = ft857_send_cmd(rig, index);
|
||||
|
||||
rig_force_cache_timeout(&((struct ft857_priv_data *) rig->state.priv)->tx_status_tv);
|
||||
|
||||
if (n < 0 && n != -RIG_ERJCTED)
|
||||
return n;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue