diff --git a/libraries/AP_RCTelemetry/AP_RCTelemetry_config.h b/libraries/AP_RCTelemetry/AP_RCTelemetry_config.h index 3c325f1397..8cfb33467d 100644 --- a/libraries/AP_RCTelemetry/AP_RCTelemetry_config.h +++ b/libraries/AP_RCTelemetry/AP_RCTelemetry_config.h @@ -12,3 +12,7 @@ #ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED #define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED OSD_ENABLED && OSD_PARAM_ENABLED && HAL_CRSF_TELEM_ENABLED && BOARD_FLASH_SIZE > 1024 #endif + +#ifndef HAL_SPEKTRUM_TELEM_ENABLED +#define HAL_SPEKTRUM_TELEM_ENABLED 1 +#endif diff --git a/libraries/AP_RCTelemetry/AP_Spektrum_Telem.h b/libraries/AP_RCTelemetry/AP_Spektrum_Telem.h index 3ae1900d6d..5b4f0a3faa 100644 --- a/libraries/AP_RCTelemetry/AP_Spektrum_Telem.h +++ b/libraries/AP_RCTelemetry/AP_Spektrum_Telem.h @@ -14,11 +14,7 @@ */ #pragma once -#include - -#ifndef HAL_SPEKTRUM_TELEM_ENABLED -#define HAL_SPEKTRUM_TELEM_ENABLED !HAL_MINIMIZE_FEATURES -#endif +#include "AP_RCTelemetry_config.h" #if HAL_SPEKTRUM_TELEM_ENABLED