Skip to content

Commit

Permalink
Fix conflict resolution error.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored Feb 1, 2024
1 parent d03f295 commit 08986c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@ controller_interface::return_type ControllerManager::switch_controller(
RCLCPP_DEBUG(get_logger(), " - %s", interface.c_str());
}

if (!resource_manager_->prepare_command_mode_switch(
activate_command_interface_request_, deactivate_command_interface_request_))
if (
!activate_command_interface_request_.empty() || !deactivate_command_interface_request_.empty())
{
if (!resource_manager_->prepare_command_mode_switch(
activate_command_interface_request_, deactivate_command_interface_request_))
Expand Down

0 comments on commit 08986c7

Please sign in to comment.