kopia lustrzana https://github.com/Hamlib/Hamlib
Fix gpredict behavior with cross band split
Yaesu memory will be ignored for now when in split mode We may want to allow it when we allow for VFOA/B caching https://github.com/Hamlib/Hamlib/issues/470pull/474/head
rodzic
aa58442e18
commit
e5b7a5442d
|
@ -783,8 +783,10 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
|
|
||||||
//
|
//
|
||||||
// Restore band memory if we can and band is changing -- we do it before we set the frequency
|
// Restore band memory if we can and band is changing -- we do it before we set the frequency
|
||||||
|
// And only when not in split mode
|
||||||
if (newcat_valid_command(rig, "BS")
|
if (newcat_valid_command(rig, "BS")
|
||||||
&& newcat_band_index(freq) != newcat_band_index(rig->state.current_freq))
|
&& newcat_band_index(freq) != newcat_band_index(rig->state.current_freq)
|
||||||
|
&& !rig->state.cache.split)
|
||||||
{
|
{
|
||||||
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c",
|
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c",
|
||||||
newcat_band_index(freq), cat_term);
|
newcat_band_index(freq), cat_term);
|
||||||
|
|
Ładowanie…
Reference in New Issue