GCS_MAVLink: stop creating unnecessary Location object on stack

Location is implicitly zero.
This commit is contained in:
Peter Barker 2024-11-18 10:06:34 +11:00 committed by Peter Barker
parent 2feee53a37
commit 4773571525

View File

@ -5502,7 +5502,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_int_packet(const mavlink_command_int_t &p
#endif
case MAV_CMD_DO_SET_ROI_NONE: {
const Location zero_loc = Location();
const Location zero_loc;
return handle_command_do_set_roi(zero_loc);
}