mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 15:43:34 +08:00
px4io:Add passive support for Enter/Exit pwm test mode
Accept PWM_SERVO_[ENTER|EXIT]_TEST_MODE as a noop. As long as the mixer in passthrough and armed the pwm test will work.
This commit is contained in:
committed by
Lorenz Meier
parent
b578419e09
commit
be6f6126f4
@@ -2745,6 +2745,10 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
|
||||
break;
|
||||
}
|
||||
|
||||
case PWM_SERVO_SET_MODE:
|
||||
ret = (arg == PWM_SERVO_ENTER_TEST_MODE || PWM_SERVO_EXIT_TEST_MODE) ? 0 : -EINVAL;
|
||||
break;
|
||||
|
||||
case GPIO_RESET: {
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user