From 55ff1160c9e0d49028c52296fa920428d30fd7c3 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Thu, 29 Dec 2011 11:27:56 -0500 Subject: digital: fixing up blocks to use SNR est classes more appropriately. --- gr-digital/lib/digital_mpsk_snr_est_cc.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gr-digital/lib/digital_mpsk_snr_est_cc.cc') diff --git a/gr-digital/lib/digital_mpsk_snr_est_cc.cc b/gr-digital/lib/digital_mpsk_snr_est_cc.cc index 0830b4a4d..7d75dbb8b 100644 --- a/gr-digital/lib/digital_mpsk_snr_est_cc.cc +++ b/gr-digital/lib/digital_mpsk_snr_est_cc.cc @@ -63,7 +63,12 @@ digital_mpsk_snr_est_cc::work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) { - return d_snr_est->update(noutput_items, input_items, output_items); + // This is a pass-through block; copy input to output + memcpy(output_items[0], input_items[0], + noutput_items * sizeof(gr_complex)); + + // Update the SNR estimate registers from the current inputs + return d_snr_est->update(noutput_items, input_items); } double -- cgit