Repair a regression with the dummy get PTT functionality

pull/281/head
Bill Somerville 2020-05-26 13:02:34 +01:00 zatwierdzone przez Nate Bargmann
rodzic 72066a4ebe
commit 1a836d4d7c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -535,6 +535,10 @@ static int dummy_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
*ptt = status ? RIG_PTT_ON : RIG_PTT_OFF; *ptt = status ? RIG_PTT_ON : RIG_PTT_OFF;
} }
else
{
*ptt = RIG_PTT_OFF;
}
break; break;
@ -545,6 +549,10 @@ static int dummy_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
*ptt = status ? RIG_PTT_ON : RIG_PTT_OFF; *ptt = status ? RIG_PTT_ON : RIG_PTT_OFF;
} }
else
{
*ptt = RIG_PTT_OFF;
}
break; break;