aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2014-11-25 20:03:26 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2014-11-25 20:03:26 +0100
commitda27f3fb0a614c2cb9f5f867be8df77f53058f28 (patch)
tree4ed41e6f14efb2edb1ec893de9b1c35b95502365
parent8d9e6b58bb8dac8a92603feb8804c42ecc1e5945 (diff)
apps: fix named gain access on osmocom_siggen_base.py
-rw-r--r--apps/osmocom_siggen_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/osmocom_siggen_base.py b/apps/osmocom_siggen_base.py
index 2719aa7..e55e767 100644
--- a/apps/osmocom_siggen_base.py
+++ b/apps/osmocom_siggen_base.py
@@ -201,9 +201,9 @@ class top_block(gr.top_block, pubsub):
print "Set gain to:", gain
if self._verbose:
- gain_names = self.src.get_gain_names()
+ gain_names = self._sink.get_gain_names()
for name in gain_names:
- range = self.src.get_gain_range(name)
+ range = self._sink.get_gain_range(name)
print "%s gain range: start %d stop %d step %d" % (name, range.start(), range.stop(), range.step())
if options.gains:
@@ -211,10 +211,10 @@ class top_block(gr.top_block, pubsub):
name, gain = tuple.split(":")
gain = int(gain)
print "Setting gain %s to %d." % (name, gain)
- self.src.set_gain(gain, name)
+ self._sink.set_gain(gain, name)
if self._verbose:
- rates = self.src.get_sample_rates()
+ rates = self._sink.get_sample_rates()
print 'Supported sample rates %d-%d step %d.' % (rates.start(), rates.stop(), rates.step())
# Set the antenna