Skip to content

Commit

Permalink
Update px4_ros2_cpp/test/integration/overrides.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Beat Küng <[email protected]>
  • Loading branch information
damien-robotsix and bkueng authored Jul 15, 2024
1 parent 04e778c commit 6e0f539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion px4_ros2_cpp/test/integration/overrides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ModeExecutorTest : public px4_ros2::ModeExecutorBase
{
public:
ModeExecutorTest(rclcpp::Node & node, FlightModeTest & owned_mode, bool activate_immediately)
: ModeExecutorBase(node, ModeExecutorBase::Settings{Settings::Activation::ActivateImmediately},
: ModeExecutorBase(node, ModeExecutorBase::Settings{activate_immediately ? Settings::Activation::ActivateImmediately : Settings::Activation::ActivateOnlyWhenArmed},
owned_mode),
_node(node)
{}
Expand Down

0 comments on commit 6e0f539

Please sign in to comment.