Skip to content

Commit 7317e4f

Browse files
authored
Use the new reusable helpers methods in hardware diagnostics (#2216)
1 parent 30273dc commit 7317e4f

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
@@ -3766,7 +3766,7 @@ void ControllerManager::hardware_components_diagnostic_callback(
37663766
.periodicity.standard_deviation.error)
37673767
{
37683768
diag_level = diagnostic_msgs::msg::DiagnosticStatus::ERROR;
3769-
add_element_to_list(bad_periodicity_async_hw, comp_name);
3769+
ros2_control::add_item(bad_periodicity_async_hw, comp_name);
37703770
}
37713771
else if (
37723772
periodicity_error >
@@ -3778,7 +3778,7 @@ void ControllerManager::hardware_components_diagnostic_callback(
37783778
{
37793779
diag_level = diagnostic_msgs::msg::DiagnosticStatus::WARN;
37803780
}
3781-
add_element_to_list(bad_periodicity_async_hw, comp_name);
3781+
ros2_control::add_item(bad_periodicity_async_hw, comp_name);
37823782
}
37833783
}
37843784
const double max_exp_exec_time =

0 commit comments

Comments
 (0)