aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorKuntzeM <github@kuntze.email>2020-03-17 16:37:42 +0100
committerKuntzeM <github@kuntze.email>2020-03-17 16:37:42 +0100
commitf97de5d4b6b6d77dfbe7e50432a8b3057e9361f8 (patch)
tree57db198462a1a651a11a50d52ad9e42cab187134 /src/ConfigParser.cpp
parentaba6f8678180a88c397f2f41b1b750be264882d4 (diff)
downloaddabmux-f97de5d4b6b6d77dfbe7e50432a8b3057e9361f8.tar.gz
dabmux-f97de5d4b6b6d77dfbe7e50432a8b3057e9361f8.tar.bz2
dabmux-f97de5d4b6b6d77dfbe7e50432a8b3057e9361f8.zip
change FIG 0/0 alarm flag if an alarm cluster available in mux
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index dd0041e..538cb76 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -509,6 +509,11 @@ static void parse_general(ptree& pt,
throw runtime_error("Announcement cluster id " +
to_string(cl->cluster_id) + " is not allowed");
}
+ if (cl->cluster_id == 255) {
+ etiLog.level(debug) <<
+ "Alarm flag for FIG 0/0 is set 1, because announcement group with cluster id oxFF is found.";
+ ensemble->alarm_flag = 1;
+ }
cl->flags = get_announcement_flag_from_ptree(
pt_announcement.get_child("flags"));
cl->subchanneluid = pt_announcement.get<string>("subchannel");