Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dictionary is immutable, and add returns a new dict... ok

  • Loading branch information...
commit 075bf6ec7e9f8169d9dee59fb9e74d13146b6ddb 1 parent 7620329
@guruofquality authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/uhd_amsg_source.cc
View
6 lib/uhd_amsg_source.cc
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.