diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index d5b557033e..4da3789e56 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -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) {