diff options
-rw-r--r-- | gnuradio-core/src/guile/tests/filter_ctors.test | 6 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_cma_equalizer_cc.cc | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gnuradio-core/src/guile/tests/filter_ctors.test b/gnuradio-core/src/guile/tests/filter_ctors.test index 8618890fa..6a35bd296 100644 --- a/gnuradio-core/src/guile/tests/filter_ctors.test +++ b/gnuradio-core/src/guile/tests/filter_ctors.test @@ -32,12 +32,12 @@ ;;; Add test code for all constructors in these files ;;; -;;; ./filter/gr_adaptive_fir_ccf.h FIXME: not found +;;; ./filter/gr_adaptive_fir_ccf.h WONTFIX: not wrapped ;; gr_adaptive_fir_ccf(char *name, int decimation, const std::vector<float> &taps); ;; (pass-if (true? (gr:adaptive-fir-ccf "foo" 0 #(1.0 2.0 3.0 4.0)))) -;;; ./filter/gr_cma_equalizer_cc.h FIXME: not found -;; (pass-if (true? (gr:cma-equalizer-cc 0 0 0))) +;;; ./filter/gr_cma_equalizer_cc.h +(pass-if (true? (gr:cma-equalizer-cc 0 0 0))) ;;; ./filter/gr_fft_filter_ccc.h FIXME: not found ;; (pass-if (true? (gr:fft-filter-ccc 0 #(1+3i 23+5i)))) diff --git a/gnuradio-core/src/lib/filter/gr_cma_equalizer_cc.cc b/gnuradio-core/src/lib/filter/gr_cma_equalizer_cc.cc index 8252509bb..f80bfd518 100644 --- a/gnuradio-core/src/lib/filter/gr_cma_equalizer_cc.cc +++ b/gnuradio-core/src/lib/filter/gr_cma_equalizer_cc.cc @@ -36,6 +36,7 @@ gr_cma_equalizer_cc::gr_cma_equalizer_cc(int num_taps, float modulus, float mu) : gr_adaptive_fir_ccf("cma_equalizer_cc", 1, std::vector<float>(num_taps)), d_modulus(modulus), d_mu(mu) { - d_taps[0] = 1.0; + if (num_taps > 0) + d_taps[0] = 1.0; } |