From fa454da3155a0518f31d669dc96123f399211265 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 28 Oct 2020 19:39:13 +0000 Subject: [PATCH] Plane: allow OSD for TX-only screens --- ArduPlane/Parameters.cpp | 2 +- ArduPlane/Plane.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 4dbd1507ff..cfd33e5362 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -1085,7 +1085,7 @@ const AP_Param::Info Plane::var_info[] = { // @Path: ../libraries/AP_Landing/AP_Landing.cpp GOBJECT(landing, "LAND_", AP_Landing), -#if OSD_ENABLED +#if OSD_ENABLED || OSD_PARAM_ENABLED // @Group: OSD // @Path: ../libraries/AP_OSD/AP_OSD.cpp GOBJECT(osd, "OSD", AP_OSD), diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 2dff668341..d24e60c169 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -253,7 +253,7 @@ private: // Rally Ponints AP_Rally rally; -#if OSD_ENABLED == ENABLED +#if OSD_ENABLED || OSD_PARAM_ENABLED AP_OSD osd; #endif @@ -974,7 +974,7 @@ private: void update_control_mode(void); void update_flight_stage(); void set_flight_stage(AP_Vehicle::FixedWing::FlightStage fs); -#if OSD_ENABLED == ENABLED +#if OSD_ENABLED || OSD_PARAM_ENABLED void publish_osd_info(); #endif