Plane: Return RESULT_FAILED for GET_CMD_HOME if home is unset

This commit is contained in:
Michael du Breuil 2016-09-02 21:16:41 -07:00 committed by Randy Mackay
parent 95d5752011
commit 2843e266b5

View File

@ -1475,6 +1475,8 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
if (plane.home_is_set != HOME_UNSET) {
send_home(plane.ahrs.get_home());
result = MAV_RESULT_ACCEPTED;
} else {
result = MAV_RESULT_FAILED;
}
break;