Add rig_get_freq to rig_open to set up internal status correctly

pull/518/head
Michael Black W9MDB 2021-01-19 06:30:00 -06:00
rodzic bcc80fef79
commit bc607bfc1d
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -991,6 +991,10 @@ int HAMLIB_API rig_open(RIG *rig)
}
#endif
// read frequence to update internal status
freq_t freq;
if (caps->get_freq) rig_get_freq(rig, RIG_VFO_A, &freq);
if (caps->get_freq) rig_get_freq(rig, RIG_VFO_B, &freq);
RETURNFUNC(RIG_OK);
}