diff --git a/naive/src/incrementer.cpp b/naive/src/incrementer.cpp index 1721c1e..08f6f0c 100644 --- a/naive/src/incrementer.cpp +++ b/naive/src/incrementer.cpp @@ -12,7 +12,7 @@ Incrementer::Incrementer(std::unique_ptr mw) { mw_->registerCallback([this](const std_msgs::msg::Int64::SharedPtr msg) { std_msgs::msg::Int64 incremented; - incremented.data = msg->data + 1; + incremented.data = msg->data; mw_->publish(incremented); }); }