Add additional get_freq if freq > 100MHz to update cache

This covers rigs that round VHF/UHF freqs to different intervals
https://github.com/Hamlib/Hamlib/issues/334
pull/345/head
Michael Black W9MDB 2020-07-04 11:20:38 -05:00
rodzic 5ebb95bb43
commit 699927b3e7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1362,6 +1362,7 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
// we'll try this all the time and if it works out OK eliminate the #else
if ((unsigned long long)freq % 100 != 0 // only need to do if < 100Hz interval
|| freq > 100e6 // or if we are in the VHF and up range
#if 0
// do we need to only do this when cache is turned on? 2020-07-02 W9MDB
&& rig->state.cache.timeout_ms > 0