mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
removed decoding twice fix - seems its not a LDPC related error
This commit is contained in:
parent
501ccd9de3
commit
03705a041c
13
tnc/modem.py
13
tnc/modem.py
|
@ -634,18 +634,7 @@ class RF:
|
|||
state = codec2.api.freedv_get_rx_status(freedv)
|
||||
|
||||
if state == 10:
|
||||
# TODO: This is just a temporary fix, needs to be removed, soon
|
||||
# if in state 10, we try to rerun decoding with a
|
||||
# chance of recovering the frame
|
||||
nbytes = codec2.api.freedv_rawdatarx(
|
||||
freedv, bytes_out, audiobuffer.buffer.ctypes
|
||||
)
|
||||
if nbytes == bytes_per_frame:
|
||||
self.log.warning(
|
||||
"[MDM] [demod_audio] recovered lost frame", nbytes=nbytes
|
||||
)
|
||||
else:
|
||||
state_buffer.append(state)
|
||||
state_buffer.append(state)
|
||||
|
||||
audiobuffer.pop(nin)
|
||||
nin = codec2.api.freedv_nin(freedv)
|
||||
|
|
Loading…
Reference in a new issue