Fix caching of get_vfo to avoid caching error returns

https://github.com/Hamlib/Hamlib/issues/270
pull/281/head
Michael Black W9MDB 2020-05-30 22:45:43 -05:00
rodzic 9ecc14f897
commit f4fee7913f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1987,10 +1987,10 @@ int HAMLIB_API rig_get_vfo(RIG *rig, vfo_t *vfo)
if (retcode == RIG_OK)
{
rig->state.current_vfo = *vfo;
rig->state.cache.vfo = *vfo;
cache_ms = elapsed_ms(&rig->state.cache.time_vfo, ELAPSED_SET);
}
rig->state.cache.vfo = *vfo;
cache_ms = elapsed_ms(&rig->state.cache.time_vfo, ELAPSED_SET);
return retcode;
}