Skip to content

Commit 75a6986

Browse files
authored
fix(vehicle_cmd_gate): fix unnecessary modification (autowarefoundation#7488)
fix onGateMode function Signed-off-by: Go Sakayori <gsakayori@gmail.com>
1 parent ea41a5c commit 75a6986

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ void VehicleCmdGate::onGateMode()
711711
if (!msg) return;
712712

713713
const auto prev_gate_mode = current_gate_mode_;
714+
current_gate_mode_ = *msg;
714715

715716
if (current_gate_mode_.data != prev_gate_mode.data) {
716717
RCLCPP_INFO(

0 commit comments

Comments
 (0)