Merge pull request #388 from DJ2LS/sourcery/tci

Work on TCI support (Sourcery refactored)
This commit is contained in:
DJ2LS 2023-03-29 13:41:44 +02:00 committed by GitHub
commit bbfcc2753a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 36 deletions

View file

@ -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

View file

@ -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):