Merge pull request #1672 from clzls/fix-typo-pmr171

pmr171.c: Fix typo in get_freq
pull/1675/head
Michael Black 2025-02-14 12:45:44 -06:00 zatwierdzone przez GitHub
commit 2d3f5fe8a1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;