diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-22 17:59:53 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-22 17:59:53 +0200 |
commit | 4656db01c215c94dda70d7b579037ec368d3275e (patch) | |
tree | 398a23df161bc5c4d6ecb67e22d34da649ba2b3e /src/drivers/px4io/px4io.cpp | |
parent | 74b401c8283a16393bbfd96361496f191f2075c0 (diff) | |
download | px4-firmware-4656db01c215c94dda70d7b579037ec368d3275e.tar.gz px4-firmware-4656db01c215c94dda70d7b579037ec368d3275e.tar.bz2 px4-firmware-4656db01c215c94dda70d7b579037ec368d3275e.zip |
Enable IO safety parameter
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index d212be766..821eb52ff 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -817,6 +817,11 @@ PX4IO::init() } + /* set safety to off if circuit breaker enabled */ + if (circuit_breaker_enabled("CBRK_IO_SAFETY", CBRK_IO_SAFETY_KEY)) { + (void)io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_FORCE_SAFETY_OFF, PX4IO_FORCE_SAFETY_MAGIC); + } + /* try to claim the generic PWM output device node as well - it's OK if we fail at this */ ret = register_driver(PWM_OUTPUT_DEVICE_PATH, &fops, 0666, (void *)this); |