diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index 0f631d9c68..5239c07797 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -1082,7 +1082,7 @@ public: // frsky backend class AP_Frsky_Telem *frsky; -#if !HAL_MINIMIZE_FEATURES +#if AP_LTM_TELEM_ENABLED // LTM backend AP_LTM_Telem ltm_telemetry; #endif diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 547e073717..3d69f782bd 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2243,7 +2243,7 @@ void GCS::setup_uarts() frsky = nullptr; } } -#if !HAL_MINIMIZE_FEATURES +#if AP_LTM_TELEM_ENABLED ltm_telemetry.init(); #endif