Fix a typo that caused PWM_SERVO_GET ioctls to fail on the FMU PWM outputs.

This commit is contained in:
px4dev
2013-01-04 23:41:21 -08:00
parent 91ca80e634
commit 69cdab9afc
+1 -1
View File
@@ -500,7 +500,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
/* FALLTHROUGH */
case PWM_SERVO_GET(0):
case PWM_SERVO_GET(1): {
channel = cmd - PWM_SERVO_SET(0);
channel = cmd - PWM_SERVO_GET(0);
*(servo_position_t *)arg = up_pwm_servo_get(channel);
break;
}