mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
GCS_MAVLink: stop creating unnecessary Location object on stack
Location is implicitly zero.
This commit is contained in:
parent
2feee53a37
commit
4773571525
@ -5502,7 +5502,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_int_packet(const mavlink_command_int_t &p
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
case MAV_CMD_DO_SET_ROI_NONE: {
|
case MAV_CMD_DO_SET_ROI_NONE: {
|
||||||
const Location zero_loc = Location();
|
const Location zero_loc;
|
||||||
return handle_command_do_set_roi(zero_loc);
|
return handle_command_do_set_roi(zero_loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user