diff options
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_firdes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_firdes.cc b/gnuradio-core/src/lib/general/gr_firdes.cc index 994424edf..87724fcdf 100644 --- a/gnuradio-core/src/lib/general/gr_firdes.cc +++ b/gnuradio-core/src/lib/general/gr_firdes.cc @@ -272,7 +272,7 @@ gr_firdes::band_reject (double gain, for (int n = -M; n <= M; n++){ if (n == 0) - taps[n + M] = (1.0 + (fwT0 - fwT1)) / M_PI * w[n + M]; + taps[n + M] = 1.0 + ((fwT0 - fwT1) / M_PI * w[n + M]); else { taps[n + M] = (sin (n * fwT0) - sin (n * fwT1)) / (n * M_PI) * w[n + M]; } |