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/470

(cherry picked from commit e5b7a5442d)
Hamlib-4.0
Michael Black W9MDB 2020-12-18 12:41:25 -06:00 zatwierdzone przez Nate Bargmann
rodzic d1a1247cdb
commit bd6652e7dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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
// And only when not in split mode
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",
newcat_band_index(freq), cat_term);