aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2014-04-16 20:27:25 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2014-04-16 20:27:25 +0200
commitbfbc97db8f95f0f8b318a7cf9c04577d4202ab24 (patch)
tree4fe913698f110b82069d72aaf3f831ae3570017e
parent23ea2fcfb47c9374615e5aef342e528feba1962a (diff)
grc: fix template for gain mode setter
Problem observed & reported by Michael Dickens with swig 3.0.0, local swig 2.0.11 seems not to be affected.
-rw-r--r--grc/gen_osmosdr_blocks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
index fb963dc..a10c871 100644
--- a/grc/gen_osmosdr_blocks.py
+++ b/grc/gen_osmosdr_blocks.py
@@ -281,16 +281,16 @@ PARAMS_TMPL = """
<param>
<name>Ch$(n): Gain Mode</name>
<key>gain_mode$(n)</key>
- <value>0</value>
- <type>int</type>
+ <value>False</value>
+ <type>bool</type>
<hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
<option>
<name>Manual</name>
- <key>0</key>
+ <key>False</key>
</option>
<option>
<name>Automatic</name>
- <key>1</key>
+ <key>True</key>
</option>
</param>
#end if