kopia lustrzana https://github.com/Hamlib/Hamlib
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-79ac388436b8Hamlib-1.2.11
rodzic
d8d60cd2e7
commit
dffeb37aaf
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue