From 6a0bd4c88e38df7d4ce4f2ef92cc6a847182c744 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 7 Oct 2022 08:01:14 +1100 Subject: [PATCH] AP_BoardConfig: fixed BRD_SAFETY_MASK this was being omitted on most boards since we changed to SERVOn_FUNCTION=-1 method for GPIO --- libraries/AP_BoardConfig/AP_BoardConfig.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 46797e94b4..af4c3f97b8 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -142,11 +142,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