aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-08-15 18:04:02 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-08-15 18:04:02 +0200
commit089c4f0fd5a837b98634da1a66a170ad3834e7ca (patch)
tree53fcb27e6bbb21d6796b89fa87645e84cac82c79
parente14d3b654b55d81ca1190050311575e98ec931df (diff)
parent8dbe6a6dc0d753a0f092fc2d4be508e48429c008 (diff)
downloadpx4-firmware-089c4f0fd5a837b98634da1a66a170ad3834e7ca.tar.gz
px4-firmware-089c4f0fd5a837b98634da1a66a170ad3834e7ca.tar.bz2
px4-firmware-089c4f0fd5a837b98634da1a66a170ad3834e7ca.zip
Merge remote-tracking branch 'upstream/obcfailsafe' into obcfailsafe
-rw-r--r--src/drivers/px4io/px4io.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index 32069cf09..afb03789f 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1169,7 +1169,8 @@ PX4IO::io_set_arming_state()
clear |= PX4IO_P_SETUP_ARMING_LOCKDOWN;
}
- if (armed.force_failsafe) {
+ /* Do not set failsafe if circuit breaker is enabled */
+ if (armed.force_failsafe && !circuit_breaker_enabled("CBRK_FLIGHTTERMINATION", CBRK_FLIGHTTERMINATION_KEY)) {
set |= PX4IO_P_SETUP_ARMING_FORCE_FAILSAFE;
} else {
clear |= PX4IO_P_SETUP_ARMING_FORCE_FAILSAFE;