mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-14 20:04:05 -04:00
GCS_MAVLink: use new misison present method
This commit is contained in:
parent
84381e2e5c
commit
8e70588a9b
@ -658,7 +658,7 @@ void GCS_MAVLINK::handle_mission_request(const mavlink_message_t &msg)
|
||||
// current mission state.
|
||||
MISSION_STATE GCS_MAVLINK::mission_state(const AP_Mission &mission) const
|
||||
{
|
||||
if (mission.num_commands() < 2) { // 1 means just home is present
|
||||
if (!mission.present()) {
|
||||
return MISSION_STATE_NO_MISSION;
|
||||
}
|
||||
switch (mission.state()) {
|
||||
|
Loading…
Reference in New Issue
Block a user