diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-21 21:31:30 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-21 21:31:30 +0200 |
commit | 267b78f072b105294e28578d2d8bf28e56ff9fc9 (patch) | |
tree | a2087d28ad3ae09a4827cc8da8bd9bea9cfe2c6d /src/drivers | |
parent | 27755806d5577c63867b0d78f0c731ac7f374d48 (diff) | |
download | px4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.tar.gz px4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.tar.bz2 px4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.zip |
Fix of errors triggered by more pedantic compile options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/mkblctrl/mkblctrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/mkblctrl/mkblctrl.cpp b/src/drivers/mkblctrl/mkblctrl.cpp index 705e98eea..3cb9abc49 100644 --- a/src/drivers/mkblctrl/mkblctrl.cpp +++ b/src/drivers/mkblctrl/mkblctrl.cpp @@ -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; |