summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-07-04 23:00:08 +0200
committerMartin Braun <martin.braun@ettus.com>2014-07-07 23:12:09 +0200
commit691bdaafd602ca24d67fc68ac3e797ea55da48f6 (patch)
tree8b041cd66d35a2926741c215146f4f54fbbccd5d /gr-uhd/examples/python
parent3c42e7952dc9e5dbaf3b43cab37f13cce72dd0bf (diff)
uhd: Added more type checking and flexibility to commands and tags
Diffstat (limited to 'gr-uhd/examples/python')
-rwxr-xr-xgr-uhd/examples/python/freq_hopping.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-uhd/examples/python/freq_hopping.py b/gr-uhd/examples/python/freq_hopping.py
index ba1704309b..5da5efa241 100755
--- a/gr-uhd/examples/python/freq_hopping.py
+++ b/gr-uhd/examples/python/freq_hopping.py
@@ -105,7 +105,9 @@ class FrequencyHopperSrc(gr.hier_block2):
gain_tag.key = pmt.string_to_symbol('tx_command')
gain_tag.value = pmt.cons(
pmt.intern("gain"),
- pmt.to_pmt((0, tx_gain))
+ # These are both valid:
+ #pmt.from_double(tx_gain)
+ pmt.cons(pmt.to_pmt(0), pmt.to_pmt(tx_gain))
)
tag_list = [gain_tag,]
for i in xrange(n_bursts):