mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted ptt trigger for tci
This commit is contained in:
parent
66c36c9e39
commit
7ee409c4ac
1 changed files with 6 additions and 1 deletions
|
@ -335,7 +335,12 @@ class RF:
|
||||||
while True:
|
while True:
|
||||||
threading.Event().wait(0.01)
|
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()
|
data_out = self.modoutqueue.popleft()
|
||||||
self.tci_module.push_audio(data_out)
|
self.tci_module.push_audio(data_out)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue