mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: fixed bug in fmu safety mask set
This commit is contained in:
parent
c825c7b4cc
commit
0bd3b8ecbd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue