AP_BoardConfig: fixed bug in fmu safety mask set

This commit is contained in:
Andrew Tridgell 2016-10-20 19:26:07 +11:00
parent c825c7b4cc
commit 0bd3b8ecbd
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void AP_BoardConfig::px4_setup_safety()
if (px4io_fd != -1) { if (px4io_fd != -1) {
mask >>= 8; 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"); hal.console->printf("IGNORE_SAFETY failed\n");
} }
close(px4fmu_fd); close(px4fmu_fd);