diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-23 20:33:25 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-23 20:33:25 +0200 |
commit | aee7b6219270cc87fb90c6b40605c866dcd0f60b (patch) | |
tree | 705ff8dad1d6db7d852c5f97548f4f34a199af46 /src/rsdecoder.cpp | |
parent | 952bd0c6d4749000ab64881dfafd5bc94d73587e (diff) | |
download | etisnoop-aee7b6219270cc87fb90c6b40605c866dcd0f60b.tar.gz etisnoop-aee7b6219270cc87fb90c6b40605c866dcd0f60b.tar.bz2 etisnoop-aee7b6219270cc87fb90c6b40605c866dcd0f60b.zip |
Fix decode to .msc for both DAB and DAB+
Diffstat (limited to 'src/rsdecoder.cpp')
-rw-r--r-- | src/rsdecoder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 <stdexcept> #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<uint8_t> &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<uint8_t> &sf, int subch_index) } printf("\n"); } +#endif return uncorr_errors ? -1 : total_corr_count; } |