GCS_MAVLInk: MissionItemProtocol_Waypoints: remove unnessisary sets on ret_packet

This commit is contained in:
Iampete1 2025-01-11 13:57:52 +00:00 committed by Peter Hall
parent 8b6f58b024
commit 9b39ab0a6d

View File

@ -97,13 +97,8 @@ MAV_MISSION_RESULT MissionItemProtocol_Waypoints::get_item(const GCS_MAVLINK &_l
// set packet's current field to 1 if this is the command being executed
if (cmd.id == (uint16_t)mission.get_current_nav_cmd().index) {
ret_packet.current = 1;
} else {
ret_packet.current = 0;
}
// set auto continue to 1
ret_packet.autocontinue = 1; // 1 (true), 0 (false)
return MAV_MISSION_ACCEPTED;
}