Change anytone set_ptt to use new PTT On hold command

pull/1330/head
Mike Black W9MDB 2023-05-29 22:16:23 -05:00
rodzic 1ea7e23235
commit 8fcd8242af
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -245,7 +245,7 @@ int anytone_init(RIG *rig)
rig->state.priv = p;
p->vfo_curr = RIG_VFO_NONE;
#ifdef HAVE_PTHREAD
pthread_mutex_init(&p->mutex, NULL);
// pthread_mutex_init(&p->mutex, NULL);
#endif
}
@ -449,7 +449,7 @@ int anytone_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
}
else
{
char buf[8] = { 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06 };
char buf[8] = { 0x41, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x06 };
if (ptt) { buf[1] = 0x01; }