mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Arming: Fix compilation with OSD_PARAM_ENABLED not defined
This commit is contained in:
parent
64f208cbec
commit
470c00b6b2
@ -952,7 +952,7 @@ bool AP_Arming::camera_checks(bool display_failure)
|
||||
|
||||
bool AP_Arming::osd_checks(bool display_failure) const
|
||||
{
|
||||
#if OSD_ENABLED
|
||||
#if OSD_PARAM_ENABLED && OSD_ENABLED
|
||||
if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_CAMERA)) {
|
||||
const AP_OSD *osd = AP::osd();
|
||||
if (osd == nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user