kopia lustrzana https://github.com/Hamlib/Hamlib
pmr171.c: Fix typo in get_freq
Fix typo in get_freq returning freqMainB in any situations.pull/1672/head
rodzic
a6e280ca2e
commit
3fcf300629
|
@ -579,12 +579,12 @@ static int pmr171_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
|||
vfob);
|
||||
|
||||
// Now grab the ptt status
|
||||
cachep->ptt = reply[6] == 1;
|
||||
cachep->ptt = (reply[6] == 1);
|
||||
// And the mode
|
||||
cachep->modeMainA = guohe2rmode(reply[7], pmr171_modes);
|
||||
cachep->modeMainB = guohe2rmode(reply[8], pmr171_modes);
|
||||
|
||||
if (vfo == RIG_VFO_B) { *freq = cachep->freqMainA; }
|
||||
if (vfo == RIG_VFO_A) { *freq = cachep->freqMainA; }
|
||||
else { *freq = cachep->freqMainB; }
|
||||
|
||||
return RIG_OK;
|
||||
|
|
Ładowanie…
Reference in New Issue