Skip to content
Snippets Groups Projects
Commit 7db186a4 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug: the dynamic reconfigure parameter name for the module service...

Solved a bug: the dynamic reconfigure parameter name for the module service was not properly read at each iteration.
parent b15b7352
No related branches found
No related merge requests found
......@@ -226,9 +226,9 @@ void CModuleService<service_msg,dyn_reconf_config>::dynamic_reconfigure(dyn_reco
for(typename std::vector<typename dyn_reconf_config::AbstractParamDescriptionConstPtr>::iterator param=params.begin();param!=params.end();param++)
{
(*param)->getValue(config,value);
if((*param)->name==(name+"_num_retries"))
{
(*param)->getValue(config,value);
if(value.type()==typeid(int))
this->set_max_num_retries(boost::any_cast<int &>(value));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment