summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-10-27 15:00:16 -0700
committerMartin Braun <martin.braun@ettus.com>2015-10-27 15:00:16 -0700
commitcfac81aaeae8b7fa2c5194cd36e6bc6fa74f68b1 (patch)
tree89e8cd2c5cf4363c1fafc6b2ef3c790d38f28a64 /gr-uhd
parent8f70ee3893cac5c9a93e35ba1c332af4c87d07ba (diff)
uhd: Fixed bug in single-channel case (index error)
Diffstat (limited to 'gr-uhd')
-rw-r--r--gr-uhd/apps/uhd_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-uhd/apps/uhd_app.py b/gr-uhd/apps/uhd_app.py
index 9721174d4d..bb4b9a78af 100644
--- a/gr-uhd/apps/uhd_app.py
+++ b/gr-uhd/apps/uhd_app.py
@@ -239,7 +239,7 @@ class UHDApp(object):
self.usrp.clear_command_time(mb_idx)
self.vprint("Syncing channels...".format(prefix=self.prefix))
time.sleep(COMMAND_DELAY)
- self.freq = self.usrp.get_center_freq(self.channels[1])
+ self.freq = self.usrp.get_center_freq(self.channels[0])
self.vprint("First channel has freq: {freq} MHz.".format(freq=self.freq/1e6))
@staticmethod