summaryrefslogtreecommitdiff
path: root/ham/gnuradio-core
diff options
context:
space:
mode:
authorwulf <wulf@pkgsrc.org>2006-12-01 09:28:41 +0000
committerwulf <wulf@pkgsrc.org>2006-12-01 09:28:41 +0000
commitbb16fae64ff16a724f109e7c52cbcf52aa161294 (patch)
treed42788e7a1572d7098cdad9ff215ca4cdff4fca5 /ham/gnuradio-core
parent5131dce679bc2f1e4214031c2eefa005d4d5921f (diff)
downloadpkgsrc-bb16fae64ff16a724f109e7c52cbcf52aa161294.tar.gz
Added patch-ag that fixes a bug in gr.firdes.band_reject() function
Diffstat (limited to 'ham/gnuradio-core')
-rw-r--r--ham/gnuradio-core/patches/patch-ag13
1 files changed, 13 insertions, 0 deletions
diff --git a/ham/gnuradio-core/patches/patch-ag b/ham/gnuradio-core/patches/patch-ag
new file mode 100644
index 00000000000..499c0f599ec
--- /dev/null
+++ b/ham/gnuradio-core/patches/patch-ag
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1 2006/12/01 09:28:41 wulf Exp $
+
+--- gnuradio-core/src/lib/general/gr_firdes.cc.orig 2006-12-01 12:50:37.000000000 +1030
++++ gnuradio-core/src/lib/general/gr_firdes.cc 2006-12-01 12:52:01.000000000 +1030
+@@ -272,7 +272,7 @@
+
+ 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];
+ }