removed decoding twice fix - seems its not a LDPC related error

This commit is contained in:
DJ2LS 2023-01-01 17:00:45 +01:00
parent 501ccd9de3
commit 03705a041c

View file

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