mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-12 10:53:59 -04:00
Sub: use new misison present method
This commit is contained in:
parent
7dc91c3f32
commit
8d1a6f2bdb
@ -8,7 +8,7 @@
|
||||
* Code in this file implements the navigation commands
|
||||
*/
|
||||
bool ModeAuto::init(bool ignore_checks) {
|
||||
if (!sub.position_ok() || sub.mission.num_commands() < 2) {
|
||||
if (!sub.position_ok() || !sub.mission.present()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user