mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Merge pull request #388 from DJ2LS/sourcery/tci
Work on TCI support (Sourcery refactored)
This commit is contained in:
commit
bbfcc2753a
|
@ -66,11 +66,7 @@ class RF:
|
|||
|
||||
self.AUDIO_FRAMES_PER_BUFFER_RX = 2400 * 2 # 8192
|
||||
# 8192 Let's do some tests with very small chunks for TX
|
||||
if not static.AUDIO_ENABLE_TCI:
|
||||
self.AUDIO_FRAMES_PER_BUFFER_TX = 2400 * 2
|
||||
else:
|
||||
self.AUDIO_FRAMES_PER_BUFFER_TX = 1200
|
||||
|
||||
self.AUDIO_FRAMES_PER_BUFFER_TX = 1200 if static.AUDIO_ENABLE_TCI else 2400 * 2
|
||||
# 8 * (self.AUDIO_SAMPLE_RATE_RX/self.MODEM_SAMPLE_RATE) == 48
|
||||
self.AUDIO_CHANNELS = 1
|
||||
self.MODE = 0
|
||||
|
|
|
@ -312,7 +312,7 @@ class TCI:
|
|||
|
||||
def get_ptt(self):
|
||||
""" """
|
||||
self.ws.send(f'trx:0;')
|
||||
self.ws.send('trx:0;')
|
||||
return self.ptt
|
||||
|
||||
def close_rig(self):
|
||||
|
|
Loading…
Reference in a new issue