mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Vehicle: correct compilation when AP_MISSION_ENABLED is false
This commit is contained in:
parent
368593c2c6
commit
17f311ef32
@ -850,6 +850,7 @@ void AP_Vehicle::reboot(bool hold_in_bootloader)
|
||||
#if OSD_ENABLED
|
||||
void AP_Vehicle::publish_osd_info()
|
||||
{
|
||||
#if AP_MISSION_ENABLED
|
||||
AP_Mission *mission = AP::mission();
|
||||
if (mission == nullptr) {
|
||||
return;
|
||||
@ -872,6 +873,7 @@ void AP_Vehicle::publish_osd_info()
|
||||
}
|
||||
nav_info.wp_number = mission->get_current_nav_index();
|
||||
osd->set_nav_info(nav_info);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user