From 22aa6579ed01d01fa717d624731242b06228e97c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 15 Aug 2015 21:28:02 +0200 Subject: Do no use sizeof in FIG0/18 and 19 --- src/ConfigParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 1176efe..38a4efb 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -134,6 +134,8 @@ uint16_t get_announcement_flag_from_ptree( std::string announcement_name(annoucement_flags_names[flag]); bool flag_set = pt.get(announcement_name, false); + cerr << " CHECK FOR " << announcement_name << " " << flag_set << endl; + if (flag_set) { flags |= (1 << flag); } @@ -243,7 +245,8 @@ void parse_ptree(boost::property_tree::ptree& pt, auto cl = make_shared(name); cl->cluster_id = pt_announcement.get("cluster"); - cl->flags = get_announcement_flag_from_ptree(pt_announcement); + cl->flags = get_announcement_flag_from_ptree( + pt_announcement.get_child("flags")); cl->subchanneluid = pt_announcement.get("subchannel"); cl->enrol_at(*rc); -- cgit v1.2.3