AP_Arming: Fix compilation with OSD_PARAM_ENABLED not defined

This commit is contained in:
giacomo892 2020-11-17 17:39:17 +01:00 committed by Andrew Tridgell
parent 64f208cbec
commit 470c00b6b2

View File

@ -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) {