Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dictionary is immutable, and add returns a new dict... ok
  • Loading branch information
guruofquality committed Sep 6, 2012
1 parent 7620329 commit 075bf6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/uhd_amsg_source.cc
Expand Up @@ -72,10 +72,10 @@ class uhd_amsg_source_impl : public uhd_amsg_source{
pmt::pmt_from_uint64(md.time_spec.get_full_secs()),
pmt::pmt_from_double(md.time_spec.get_frac_secs())
);
pmt::pmt_dict_add(value_dict, TIME_KEY, timestamp);
value_dict = pmt::pmt_dict_add(value_dict, TIME_KEY, timestamp);
}
pmt::pmt_dict_add(value_dict, CHAN_KEY, pmt::pmt_from_uint64(md.channel));
pmt::pmt_dict_add(value_dict, EVENT_KEY, pmt::pmt_from_uint64(md.event_code));
value_dict = pmt::pmt_dict_add(value_dict, CHAN_KEY, pmt::pmt_from_uint64(md.channel));
value_dict = pmt::pmt_dict_add(value_dict, EVENT_KEY, pmt::pmt_from_uint64(md.event_code));
this->post_msg(0, AMSG_KEY, value_dict, _id);
}

Expand Down

0 comments on commit 075bf6e

Please sign in to comment.