Fix of errors triggered by more pedantic compile options

This commit is contained in:
Lorenz Meier
2014-04-21 21:31:30 +02:00
parent 27755806d5
commit 267b78f072
4 changed files with 16 additions and 16 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;