AP_RCTelemetry: use minimize_features.inc for more features

This commit is contained in:
Peter Barker 2023-06-01 11:21:45 +10:00 committed by Andrew Tridgell
parent 179b79a00c
commit 1f565295a3
2 changed files with 5 additions and 5 deletions

View File

@ -12,3 +12,7 @@
#ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED #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 #define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED OSD_ENABLED && OSD_PARAM_ENABLED && HAL_CRSF_TELEM_ENABLED && BOARD_FLASH_SIZE > 1024
#endif #endif
#ifndef HAL_SPEKTRUM_TELEM_ENABLED
#define HAL_SPEKTRUM_TELEM_ENABLED 1
#endif

View File

@ -14,11 +14,7 @@
*/ */
#pragma once #pragma once
#include <AP_HAL/AP_HAL_Boards.h> #include "AP_RCTelemetry_config.h"
#ifndef HAL_SPEKTRUM_TELEM_ENABLED
#define HAL_SPEKTRUM_TELEM_ENABLED !HAL_MINIMIZE_FEATURES
#endif
#if HAL_SPEKTRUM_TELEM_ENABLED #if HAL_SPEKTRUM_TELEM_ENABLED