- cleaned up from debug output

- fixed peak change mechanism

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@506 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-05-29 14:12:42 +00:00
parent 4c255bf3ff
commit 2d656e14fc
5 changed files with 39 additions and 30 deletions
+12 -8
View File
@@ -78,17 +78,21 @@ namespace gr {
void message_debug_impl::set_msg(pmt::pmt_t msg)
{
if (pmt::is_pair(msg))
{
print_pair(msg);
}
else if (pmt::is_dict(msg))
if (pmt::is_dict(msg))
{
pmt::pmt_t items = pmt::dict_items(msg);
for (int i = 0; i < pmt::length(items); i++)
try
{
pmt::pmt_t pair = pmt::nth(i, items);
print_pair(pair);
size_t len_items = pmt::length(items);
for (int i=0; i < len_items; i++)
{
pmt::pmt_t pair = pmt::nth(i, items);
print_pair(pair);
}
}
catch (const std::exception& e)
{
print_pair(msg);
}
}
else