From fe88515889d4ba76927649a789257063ebce01f3 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 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