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
|
@ -91,6 +91,9 @@
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in New Issue