From aee7b6219270cc87fb90c6b40605c866dcd0f60b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 23 Sep 2016 20:33:25 +0200 Subject: Fix decode to .msc for both DAB and DAB+ --- src/rsdecoder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/rsdecoder.cpp') diff --git a/src/rsdecoder.cpp b/src/rsdecoder.cpp index 98ccd39..5d01dcf 100644 --- a/src/rsdecoder.cpp +++ b/src/rsdecoder.cpp @@ -1,7 +1,6 @@ /* Copyright (C) 2015 Stefan Pöschel - - Copyright (C) 2015 Matthias P. Braendli (http://www.opendigitalradio.org) + Copyright (C) 2016 Matthias P. Braendli (http://www.opendigitalradio.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +19,8 @@ #include #include "rsdecoder.hpp" +#define RSDEC_DEBUG 0 + RSDecoder::RSDecoder() { rs_handle = init_rs_char(8, 0x11D, 0, 1, 10, 135); @@ -67,6 +68,7 @@ int RSDecoder::DecodeSuperframe(std::vector &sf, int subch_index) } } +#if RSDEC_DEBUG // output statistics if (total_corr_count || uncorr_errors) { printf("RS uncorrected errors:\n"); @@ -76,6 +78,7 @@ int RSDecoder::DecodeSuperframe(std::vector &sf, int subch_index) } printf("\n"); } +#endif return uncorr_errors ? -1 : total_corr_count; } -- cgit v1.2.3