Browse Source

AP_BoardConfig: fixed bug in fmu safety mask set

mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
0bd3b8ecbd
  1. 2
      libraries/AP_BoardConfig/px4_drivers.cpp

2
libraries/AP_BoardConfig/px4_drivers.cpp

@ -148,7 +148,7 @@ void AP_BoardConfig::px4_setup_safety() @@ -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);

Loading…
Cancel
Save