Skip to content

Commit

Permalink
fix(hesai_ros_wrapper): fix a bug where setting any parameter except …
Browse files Browse the repository at this point in the history
…return_mode during runtime fails (#286)

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
  • Loading branch information
mojomex authored Mar 5, 2025
1 parent c89e70c commit 39fbbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nebula_ros/src/hesai/hesai_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ rcl_interfaces::msg::SetParametersResult HesaiRosWrapper::on_parameter_change(
return rcl_interfaces::build<SetParametersResult>().successful(true).reason("");
}

if (return_mode.empty()) {
if (!return_mode.empty()) {
new_cfg.return_mode =
nebula::drivers::return_mode_from_string_hesai(return_mode, sensor_cfg_ptr_->sensor_model);
}
Expand Down

0 comments on commit 39fbbe7

Please sign in to comment.