AP_BoardConfig: add default for BOARD_SAFETY_ENABLE

If HAL supports safety button but the board didn't declare a default,
define one to match what is done with BOARD_SAFETY_OPTION_DEFAULT.
This commit is contained in:
Lucas De Marchi 2018-06-29 10:42:42 -07:00 committed by Lucas De Marchi
parent 099eefee87
commit 000ae3cb85
1 changed files with 6 additions and 3 deletions

View File

@ -88,9 +88,12 @@
#endif #endif
#if AP_FEATURE_SAFETY_BUTTON #if AP_FEATURE_SAFETY_BUTTON
#ifndef BOARD_SAFETY_OPTION_DEFAULT # ifndef BOARD_SAFETY_OPTION_DEFAULT
#define BOARD_SAFETY_OPTION_DEFAULT (BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF|BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON) # define BOARD_SAFETY_OPTION_DEFAULT (BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF|BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON)
#endif # endif
# ifndef BOARD_SAFETY_ENABLE
# define BOARD_SAFETY_ENABLE 1
# endif
#endif #endif
#ifndef BOARD_PWM_COUNT_DEFAULT #ifndef BOARD_PWM_COUNT_DEFAULT