summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 21:28:02 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-15 21:28:02 +0200
commit22aa6579ed01d01fa717d624731242b06228e97c (patch)
treea02e47ce4046275e5f85331ac1650841bd823a0e /src/ConfigParser.cpp
parent9f3045f773911d44d8e27cc625993eb689f55d64 (diff)
downloaddabmux-22aa6579ed01d01fa717d624731242b06228e97c.tar.gz
dabmux-22aa6579ed01d01fa717d624731242b06228e97c.tar.bz2
dabmux-22aa6579ed01d01fa717d624731242b06228e97c.zip
Do no use sizeof in FIG0/18 and 19
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp5
1 files changed, 4 insertions, 1 deletions
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<bool>(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<AnnouncementCluster>(name);
cl->cluster_id = pt_announcement.get<uint8_t>("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<string>("subchannel");
cl->enrol_at(*rc);