AP_RCTelemetry: add and use AP_RCPROTOCOL_CRSF_ENABLED

This commit is contained in:
Peter Barker 2023-04-26 23:46:08 +10:00 committed by Peter Barker
parent 6535bfa546
commit c50b996015
1 changed files with 2 additions and 1 deletions

View File

@ -3,9 +3,10 @@
#include <AP_HAL/AP_HAL_Boards.h> #include <AP_HAL/AP_HAL_Boards.h>
#include <AP_Frsky_Telem/AP_Frsky_config.h> #include <AP_Frsky_Telem/AP_Frsky_config.h>
#include <AP_OSD/AP_OSD_config.h> #include <AP_OSD/AP_OSD_config.h>
#include <AP_RCProtocol/AP_RCProtocol_config.h>
#ifndef HAL_CRSF_TELEM_ENABLED #ifndef HAL_CRSF_TELEM_ENABLED
#define HAL_CRSF_TELEM_ENABLED AP_FRSKY_SPORT_PASSTHROUGH_ENABLED #define HAL_CRSF_TELEM_ENABLED AP_RCPROTOCOL_CRSF_ENABLED && AP_FRSKY_SPORT_PASSTHROUGH_ENABLED
#endif #endif
#ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED #ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED