mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_ChibiOS: fix safety switch option handling
This commit is contained in:
parent
b68a91d171
commit
c1ab3afb6c
@ -1442,11 +1442,11 @@ void RCOutput::safety_update(void)
|
||||
safety_pressed = false;
|
||||
}
|
||||
if (safety_state==AP_HAL::Util::SAFETY_DISARMED &&
|
||||
!(safety_options & AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON)) {
|
||||
!(safety_options & AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF)) {
|
||||
safety_pressed = false;
|
||||
}
|
||||
if (safety_state==AP_HAL::Util::SAFETY_ARMED &&
|
||||
!(safety_options & AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF)) {
|
||||
!(safety_options & AP_BoardConfig::BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON)) {
|
||||
safety_pressed = false;
|
||||
}
|
||||
if (safety_pressed) {
|
||||
|
Loading…
Reference in New Issue
Block a user