corner case handling of RIG_VFO_VFO in set_freq/get_freq

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2868 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.11
Stéphane Fillod, F8CFE 2010-04-05 13:43:38 +00:00
rodzic d8d60cd2e7
commit dffeb37aaf
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -606,7 +606,7 @@ int kenwood_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
unsigned char vfo_letter;
vfo_t tvfo;
tvfo = vfo==RIG_VFO_CURR ? rig->state.current_vfo : vfo;
tvfo = (vfo==RIG_VFO_CURR || vfo==RIG_VFO_VFO) ? rig->state.current_vfo : vfo;
switch (tvfo) {
case RIG_VFO_A: vfo_letter = 'A'; break;
@ -652,7 +652,7 @@ int kenwood_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
unsigned char vfo_letter;
vfo_t tvfo;
tvfo = vfo == RIG_VFO_CURR ? rig->state.current_vfo : vfo;
tvfo = (vfo == RIG_VFO_CURR || vfo==RIG_VFO_VFO) ? rig->state.current_vfo : vfo;
/* memory frequency cannot be read with an Fx command, use IF */
if (tvfo == RIG_VFO_MEM) {