From 0bd3b8ecbdabedd0e7baae77692c48dffe81880a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 20 Oct 2016 19:26:07 +1100 Subject: [PATCH] AP_BoardConfig: fixed bug in fmu safety mask set --- libraries/AP_BoardConfig/px4_drivers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BoardConfig/px4_drivers.cpp b/libraries/AP_BoardConfig/px4_drivers.cpp index 989f0e9fa7..9a65a0ecb0 100644 --- a/libraries/AP_BoardConfig/px4_drivers.cpp +++ b/libraries/AP_BoardConfig/px4_drivers.cpp @@ -148,7 +148,7 @@ void AP_BoardConfig::px4_setup_safety() if (px4io_fd != -1) { mask >>= 8; } - if (ioctl(px4io_fd, PWM_SERVO_IGNORE_SAFETY, (uint16_t)mask) != 0) { + if (ioctl(px4fmu_fd, PWM_SERVO_IGNORE_SAFETY, (uint16_t)mask) != 0) { hal.console->printf("IGNORE_SAFETY failed\n"); } close(px4fmu_fd);