AP_BoardConfig: fixed BRD_SAFETY_MASK

this was being omitted on most boards since we changed to
SERVOn_FUNCTION=-1 method for GPIO
This commit is contained in:
Andrew Tridgell 2022-10-07 08:01:14 +11:00
parent aaf7e38fdf
commit fe88515889
1 changed files with 0 additions and 4 deletions

View File

@ -141,11 +141,7 @@ public:
// return the value of BRD_SAFETY_MASK // return the value of BRD_SAFETY_MASK
uint16_t get_safety_mask(void) const { 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()); return uint32_t(state.ignore_safety_channels.get());
#else
return 0;
#endif
} }
#if HAL_HAVE_BOARD_VOLTAGE #if HAL_HAVE_BOARD_VOLTAGE