mirror of https://github.com/DJ2LS/FreeDATA.git
decode only if not transmitting- this should avoid some confusion if monitoring is enabled
parent
1218174f81
commit
4ab23af52d
|
@ -152,9 +152,11 @@ class Demodulator():
|
||||||
threading.Event().wait(0.01)
|
threading.Event().wait(0.01)
|
||||||
if audiobuffer.nbuffer >= nin and not self.shutdown_flag.is_set():
|
if audiobuffer.nbuffer >= nin and not self.shutdown_flag.is_set():
|
||||||
# demodulate audio
|
# demodulate audio
|
||||||
nbytes = codec2.api.freedv_rawdatarx(
|
if not self.states.isTransmitting():
|
||||||
freedv, bytes_out, audiobuffer.buffer.ctypes
|
nbytes = codec2.api.freedv_rawdatarx(
|
||||||
)
|
freedv, bytes_out, audiobuffer.buffer.ctypes
|
||||||
|
)
|
||||||
|
|
||||||
# get current freedata_server states and write to list
|
# get current freedata_server states and write to list
|
||||||
# 1 trial
|
# 1 trial
|
||||||
# 2 sync
|
# 2 sync
|
||||||
|
|
Loading…
Reference in New Issue