Skip to content

Commit

Permalink
fix(vehicle_cmd_gate): fix unnecessary modification (#7488)
Browse files Browse the repository at this point in the history
fix onGateMode function

Signed-off-by: Go Sakayori <[email protected]>
  • Loading branch information
go-sakayori authored Jun 15, 2024
1 parent ea41a5c commit 75a6986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ void VehicleCmdGate::onGateMode()
if (!msg) return;

const auto prev_gate_mode = current_gate_mode_;
current_gate_mode_ = *msg;

if (current_gate_mode_.data != prev_gate_mode.data) {
RCLCPP_INFO(
Expand Down

0 comments on commit 75a6986

Please sign in to comment.