Skip to content

Commit 738833f

Browse files
committed
fix bug: auto-start node by default
1 parent 5707dca commit 738833f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spinnaker_camera_driver/src/camera_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CameraDriver::CameraDriver(const rclcpp::NodeOptions & options) : NodeType("came
4343
get_node_base_interface()->get_context()->add_pre_shutdown_callback(
4444
std::bind(&CameraDriver::preShutdown, this));
4545

46-
if (declare_parameter("auto_start", true)) {
46+
if (declare_parameter<bool>("auto_start", true)) {
4747
// defer because one cannot call some of the required methods inside the constructor
4848
timer_ = create_wall_timer(std::chrono::microseconds(0), [this]() -> void {
4949
timer_->cancel();

0 commit comments

Comments
 (0)