From 691bdaafd602ca24d67fc68ac3e797ea55da48f6 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.braun@ettus.com> Date: Fri, 4 Jul 2014 23:00:08 +0200 Subject: uhd: Added more type checking and flexibility to commands and tags --- gr-uhd/examples/python/freq_hopping.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gr-uhd/examples/python') 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): -- cgit v1.2.3