mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
Fix a typo that caused PWM_SERVO_GET ioctls to fail on the FMU PWM outputs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user