kopia lustrzana https://github.com/Hamlib/Hamlib
Add forced cache timeouts to other setters that affect cached getters.
rodzic
e78e6d1d42
commit
58c75aa2fe
|
@ -779,6 +779,8 @@ int ft897_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 ft897_priv_data *) rig->state.priv)->fm_status_tv);
|
||||
|
||||
return ft897_send_cmd(rig, index);
|
||||
}
|
||||
|
||||
|
@ -804,6 +806,8 @@ int ft897_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
|
||||
n = ft897_send_cmd(rig, index);
|
||||
|
||||
rig_force_cache_timeout(&((struct ft897_priv_data *) rig->state.priv)->tx_status_tv);
|
||||
|
||||
if (n < 0 && n != -RIG_ERJCTED)
|
||||
return n;
|
||||
|
||||
|
@ -857,6 +861,8 @@ int ft897_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
|||
|
||||
n = ft897_send_cmd(rig, index);
|
||||
|
||||
rig_force_cache_timeout(&((struct ft897_priv_data *) rig->state.priv)->tx_status_tv);
|
||||
|
||||
if (n < 0 && n != -RIG_ERJCTED)
|
||||
return n;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue