summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-12-29 12:24:49 -0500
committerTom Rondeau <tom@trondeau.com>2014-12-29 12:24:49 -0500
commitb508945c8096a778a171ee70fe769d97924e4978 (patch)
treeaf2f26bff3beda9e2023aa286e8dd4b83e8f7b21
parent1a301cbce806b2fc04d1ad565f2888ebdc230f32 (diff)
fec: cleanup
-rw-r--r--gr-fec/include/gnuradio/fec/dummy_decoder.h1
-rw-r--r--gr-fec/lib/decoder_impl.cc4
-rw-r--r--gr-fec/lib/encoder_impl.cc8
3 files changed, 10 insertions, 3 deletions
diff --git a/gr-fec/include/gnuradio/fec/dummy_decoder.h b/gr-fec/include/gnuradio/fec/dummy_decoder.h
index 071b57151e..0561803ea1 100644
--- a/gr-fec/include/gnuradio/fec/dummy_decoder.h
+++ b/gr-fec/include/gnuradio/fec/dummy_decoder.h
@@ -67,6 +67,7 @@ namespace gr {
* Returns the coding rate of this encoder (it will always be 1).
*/
virtual double rate() = 0;
+
};
} /* namespace code */
diff --git a/gr-fec/lib/decoder_impl.cc b/gr-fec/lib/decoder_impl.cc
index ba8a7d000e..38d564374a 100644
--- a/gr-fec/lib/decoder_impl.cc
+++ b/gr-fec/lib/decoder_impl.cc
@@ -95,8 +95,10 @@ namespace gr {
noutput_items/(output_multiple() - d_decoder->get_history()) :
innum;
- GR_LOG_DEBUG(d_debug_logger, boost::format("%1%, %2%, %3%") \
+ /*
+ GR_LOG_DEBUG(d_debug_logger, boost::format("%1%, %2%, %3%") \
% outnum % ninput_items[0] % items);
+ */
for(int i = 0; i < items; ++i) {
d_decoder->generic_work((void*)(in+(i*d_decoder->get_input_size()*d_input_item_size)),
diff --git a/gr-fec/lib/encoder_impl.cc b/gr-fec/lib/encoder_impl.cc
index 399bcc41cf..31f56eac58 100644
--- a/gr-fec/lib/encoder_impl.cc
+++ b/gr-fec/lib/encoder_impl.cc
@@ -91,8 +91,10 @@ namespace gr {
char *inbuffer = (char*)input_items[0];
char *outbuffer = (char*)output_items[0];
- GR_LOG_DEBUG(d_debug_logger, boost::format("%1%, %2%, %3%") \
+ /*
+ GR_LOG_DEBUG(d_debug_logger, boost::format("%1%, %2%, %3%") \
% noutput_items % ninput_items[0] % (noutput_items/output_multiple()));
+ */
for(int i = 0; i < noutput_items/output_multiple(); i++) {
@@ -100,10 +102,12 @@ namespace gr {
(void*)(outbuffer+(i*d_output_size)));
}
- GR_LOG_DEBUG(d_debug_logger, boost::format("consuming: %1%") \
+ /*
+ GR_LOG_DEBUG(d_debug_logger, boost::format("consuming: %1%") \
% (fixed_rate_noutput_to_ninput(noutput_items)));
GR_LOG_DEBUG(d_debug_logger, boost::format("returning: %1%") \
% (noutput_items));
+ */
consume_each(fixed_rate_noutput_to_ninput(noutput_items));
return noutput_items;