Plane: remove redundant send_ekf_origin

This commit is contained in:
Peter Barker 2019-02-14 08:46:04 +11:00 committed by Peter Barker
parent bf9b8f41bf
commit 0858847294
1 changed files with 2 additions and 2 deletions

View File

@ -905,8 +905,8 @@ void Plane::do_set_home(const AP_Mission::Mission_Command& cmd)
// silently ignore error // silently ignore error
} }
} else { } else {
if (AP::ahrs().set_home(cmd.content.location)) { if (!AP::ahrs().set_home(cmd.content.location)) {
gcs().send_ekf_origin(); // silently ignore failure
} }
} }
} }