summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorTim O'Shea2013-02-13 16:38:20 -0500
committerTom Rondeau2013-02-13 17:03:29 -0500
commit4202152bfd2015cba2e52592761b5e64bfb46c0f (patch)
treeeb77b4d6ef5923ed738aa2587a4401813cacfe31 /grc
parent5a61382d88a67393912fd64133a3c3e120f26375 (diff)
downloadgnuradio-4202152bfd2015cba2e52592761b5e64bfb46c0f.tar.gz
gnuradio-4202152bfd2015cba2e52592761b5e64bfb46c0f.tar.bz2
gnuradio-4202152bfd2015cba2e52592761b5e64bfb46c0f.zip
grc: add callback for gr_throttle sample_rate
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/gr_throttle.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/grc/blocks/gr_throttle.xml b/grc/blocks/gr_throttle.xml
index dc825f167..e3a5a2ba1 100644
--- a/grc/blocks/gr_throttle.xml
+++ b/grc/blocks/gr_throttle.xml
@@ -10,6 +10,7 @@
<throttle>1</throttle>
<import>from gnuradio import gr</import>
<make>gr.throttle($type.size*$vlen, $samples_per_second)</make>
+ <callback>set_sample_rate($samples_per_second)</callback>
<param>
<name>Type</name>
<key>type</key>