aboutsummaryrefslogtreecommitdiffstats
path: root/gr-iio/grc/iio_pluto_source.block.yml
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-12-27 16:21:48 +0100
committermormj <34754695+mormj@users.noreply.github.com>2021-12-27 13:07:40 -0500
commit786390c4626ac6599fb697af1ca71a565410f973 (patch)
treedf509fadb36b02836a667a77c5ace5cf4cd55b31 /gr-iio/grc/iio_pluto_source.block.yml
parentgr-qtgui: add missing fftsize entry in freqcontrolpanel (diff)
downloadgnuradio-786390c4626ac6599fb697af1ca71a565410f973.tar.xz
gnuradio-786390c4626ac6599fb697af1ca71a565410f973.zip
iio: GRC bindings: remove global variable from hidden defaults
When the fields are hidden, and the expected global variable is undefined, the flow graph becomes unsynthesizable. I've only found this pattern with IIO blocks. Sadly, we *have* to put defaults here, in order to have valid arguments to the (useless) set_filter_params call in the non-Design filter mode. Since the fpass and fstop fields, however, aren't used, the actual value used there doesn't matter – so, 0 it is. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to '')
-rw-r--r--gr-iio/grc/iio_pluto_source.block.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-iio/grc/iio_pluto_source.block.yml b/gr-iio/grc/iio_pluto_source.block.yml
index d90dc1028..9937631b0 100644
--- a/gr-iio/grc/iio_pluto_source.block.yml
+++ b/gr-iio/grc/iio_pluto_source.block.yml
@@ -91,14 +91,14 @@ parameters:
category: Filter
label: Fpass (Hz)
dtype: float
- default: samp_rate/4
+ default: 0
hide: ${ ('none' if filter_source == "'Design'" else 'all') }
- id: fstop
category: Filter
label: Fstop (Hz)
dtype: float
- default: samp_rate/3
+ default: 0
hide: ${ ('none' if filter_source == "'Design'" else 'all') }
- id: bandwidth