From 03705a041c50be0afe94821f8b4fa0a60dd15552 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sun, 1 Jan 2023 17:00:45 +0100 Subject: [PATCH] removed decoding twice fix - seems its not a LDPC related error --- tnc/modem.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tnc/modem.py b/tnc/modem.py index e2720919..376ba95f 100644 --- a/tnc/modem.py +++ b/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)