aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsdecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rsdecoder.cpp')
-rw-r--r--src/rsdecoder.cpp7
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;
}