Skip to content

Commit

Permalink
fix the logic for existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Oct 13, 2024
1 parent d1daa53 commit fbf9b68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,10 @@ controller_interface::return_type ControllerManager::switch_controller(
status = check_following_controllers_for_activate(controllers, strictness, controller_it);
}

status = check_fallback_controllers_state_pre_activation(controllers, controller_it);
if (status == controller_interface::return_type::OK)
{
status = check_fallback_controllers_state_pre_activation(controllers, controller_it);
}

if (status != controller_interface::return_type::OK)
{
Expand Down

0 comments on commit fbf9b68

Please sign in to comment.