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:
David Sidrane
2018-09-13 08:45:36 +02:00
committed by Lorenz Meier
parent b578419e09
commit be6f6126f4
+4
View File
@@ -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;