diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 6987c0382b..cf1ee134bc 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -141,11 +141,7 @@ public: // return the value of BRD_SAFETY_MASK uint16_t get_safety_mask(void) const { -#if AP_FEATURE_BOARD_DETECT || defined(AP_FEATURE_BRD_PWM_COUNT_PARAM) return uint32_t(state.ignore_safety_channels.get()); -#else - return 0; -#endif } #if HAL_HAVE_BOARD_VOLTAGE