summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2016-10-26 16:28:35 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2016-10-26 16:28:35 +0900
commitf259983e3f9354d7ed080af248c10e28144df9be (patch)
tree69534193838983d3c83dd0ef2d51028479a6c4a6
parent62f385218d3d33d2db867b5c35d1e3e277471764 (diff)
downloadautomotive-message-broker-f259983e3f9354d7ed080af248c10e28144df9be.tar.gz
AmbSignalMapper: bugfix about configuration
If 'announcementCount' variable is lower than 1, then 'announcementIntervalTimer' variable is updated to 1. That is definitely a bug so this patch fixes that error by updating 'announcementCount' instead of 'announcementIntervalTimer'. Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r--tools/AmbSignalMapper/lib/Intel/IviPoc/templates/ambtmpl_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/AmbSignalMapper/lib/Intel/IviPoc/templates/ambtmpl_plugin.cpp b/tools/AmbSignalMapper/lib/Intel/IviPoc/templates/ambtmpl_plugin.cpp
index 3353c705..227c4de8 100644
--- a/tools/AmbSignalMapper/lib/Intel/IviPoc/templates/ambtmpl_plugin.cpp
+++ b/tools/AmbSignalMapper/lib/Intel/IviPoc/templates/ambtmpl_plugin.cpp
@@ -103,7 +103,7 @@ AmbTmplPlugin::AmbTmplPlugin(AbstractRoutingEngine* re, const map<string, string
if (it != config.end() && it->second.length())
announcementCount = atoi(std::string(it->second).c_str());
if(announcementCount < 1)
- announcementIntervalTimer = 1;
+ announcementCount = 1;
registerMessages();
}