adjusted ptt trigger for tci

This commit is contained in:
DJ2LS 2023-03-29 08:41:18 +02:00
parent 66c36c9e39
commit 7ee409c4ac

View file

@ -335,7 +335,12 @@ class RF:
while True:
threading.Event().wait(0.01)
if len(self.modoutqueue) > 0 and not self.mod_out_locked:
if len(self.modoutqustatic.PTT_STATEeue) > 0 and not self.mod_out_locked:
= self.radio.set_ptt(True)
jsondata = {"ptt": "True"}
data_out = json.dumps(jsondata)
sock.SOCKET_QUEUE.put(data_out)
data_out = self.modoutqueue.popleft()
self.tci_module.push_audio(data_out)