Merge pull request #849 from PX4/compile_pedantic

Compile pedantic
This commit is contained in:
Lorenz Meier
2014-04-26 12:22:13 +02:00
5 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -1015,7 +1015,7 @@ MK::pwm_ioctl(file *filp, int cmd, unsigned long arg)
case PWM_SERVO_GET(0) ... PWM_SERVO_GET(_max_actuators - 1):
/* copy the current output value from the channel */
*(servo_position_t *)arg = Motor[cmd - PWM_SERVO_SET(0)].RawPwmValue;
*(servo_position_t *)arg = Motor[cmd - PWM_SERVO_GET(0)].RawPwmValue;
break;