mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
GCS_MAVLink: correct use of uninitialised value in Rally upload
This commit is contained in:
parent
58bdae1b52
commit
41943f5fda
@ -66,6 +66,7 @@ MAV_MISSION_RESULT MissionItemProtocol_Rally::convert_MISSION_ITEM_INT_to_RallyL
|
||||
if (cmd.z < INT16_MIN || cmd.z > INT16_MAX) {
|
||||
return MAV_MISSION_INVALID_PARAM7;
|
||||
}
|
||||
ret = {};
|
||||
ret.lat = cmd.x;
|
||||
ret.lng = cmd.y;
|
||||
ret.alt = cmd.z;
|
||||
|
Loading…
Reference in New Issue
Block a user