mirror of https://github.com/ArduPilot/ardupilot
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:
parent
099eefee87
commit
000ae3cb85
|
@ -88,9 +88,12 @@
|
|||
#endif
|
||||
|
||||
#if AP_FEATURE_SAFETY_BUTTON
|
||||
#ifndef BOARD_SAFETY_OPTION_DEFAULT
|
||||
#define BOARD_SAFETY_OPTION_DEFAULT (BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF|BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON)
|
||||
#endif
|
||||
# ifndef BOARD_SAFETY_OPTION_DEFAULT
|
||||
# define BOARD_SAFETY_OPTION_DEFAULT (BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF|BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON)
|
||||
# endif
|
||||
# ifndef BOARD_SAFETY_ENABLE
|
||||
# define BOARD_SAFETY_ENABLE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_PWM_COUNT_DEFAULT
|
||||
|
|
Loading…
Reference in New Issue