From abcfce7e4ac27b2d4109283900f6c03a9c774797 Mon Sep 17 00:00:00 2001 From: "Wilfried.Philips" Date: Mon, 17 Sep 2018 20:55:05 +0200 Subject: [PATCH] In implicit_header mode, first 8 symbols require special treatment --- lib/decoder_impl.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/decoder_impl.cc b/lib/decoder_impl.cc index 76d6b32..24d9433 100644 --- a/lib/decoder_impl.cc +++ b/lib/decoder_impl.cc @@ -16,6 +16,7 @@ * along with this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. + * 2018: patches by wilfried.philips@wphilipe.eu for low data rate and implicit header decoding */ #ifdef HAVE_CONFIG_H @@ -504,9 +505,11 @@ namespace gr { d_words.push_back(word); // Look for 4+cr symbols and stop - if (d_words.size() == (4u + d_phdr.cr)) { - // Deinterleave - deinterleave((reduced_rate || d_sf > 10) ? d_sf - 2u : d_sf); + bool is_first = d_implicit && (d_demodulated.size()==0); + + if (d_words.size() == (4u + (is_first ? 4 : d_phdr.cr))) { + // Deinterleave + deinterleave((reduced_rate || d_sf > 10) ? d_sf - 2u : d_sf); return true; // Signal that a block is ready for decoding }