From 470c00b6b2ae59158eb8fded5094272cce413fcf Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Tue, 17 Nov 2020 17:39:17 +0100 Subject: [PATCH] AP_Arming: Fix compilation with OSD_PARAM_ENABLED not defined --- libraries/AP_Arming/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {