Skip to content

Commit e45355c

Browse files
Fix compilation
1 parent 4cd545e commit e45355c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller_manager/src/controller_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,7 +3467,7 @@ void ControllerManager::hardware_components_diagnostic_callback(
34673467
if (component_info.state.id() == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
34683468
{
34693469
auto update_stats =
3470-
[&bad_periodicity_async_hw, &high_exec_time_hw, &stat, &make_stats_string](
3470+
[&bad_periodicity_async_hw, &high_exec_time_hw, &stat, &make_stats_string, this](
34713471
const std::string & comp_name, const auto & statistics,
34723472
const std::string & statistics_type_suffix, auto & diag_level, const auto & comp_info,
34733473
const auto & params)
@@ -3485,7 +3485,7 @@ void ControllerManager::hardware_components_diagnostic_callback(
34853485
comp_name + statistics_type_suffix + exec_time_suffix,
34863486
make_stats_string(exec_time_stats, "us"));
34873487
const bool publish_periodicity_stats =
3488-
is_async || comp_info.rw_rate != this->get_update_rate());
3488+
is_async || (comp_info.rw_rate != this->get_update_rate());
34893489
if (publish_periodicity_stats)
34903490
{
34913491
stat.add(

0 commit comments

Comments
 (0)