diff options
author | Julian Oes <julian@oes.ch> | 2013-10-31 10:29:06 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-10-31 10:29:06 +0100 |
commit | 25bf1abecffeb0b4c29386ef6a019b7a60c23899 (patch) | |
tree | 95d06500d28c056464c2ce922f41760e902e4a95 /src/drivers/px4io | |
parent | 88351f3da178be1c73dad47557d894943e484e34 (diff) | |
download | px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.tar.gz px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.tar.bz2 px4-firmware-25bf1abecffeb0b4c29386ef6a019b7a60c23899.zip |
pwm_output: Allow PWM values from 900us to 2100us but use a default of 1000us to 2000us
Diffstat (limited to 'src/drivers/px4io')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 63e775857..08e697b9f 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1985,7 +1985,7 @@ PX4IO::ioctl(file * /*filep*/, int cmd, unsigned long arg) /* TODO: we could go lower for e.g. TurboPWM */ unsigned channel = cmd - PWM_SERVO_SET(0); - if ((channel >= _max_actuators) || (arg < PWM_MIN) || (arg > PWM_MAX)) { + if ((channel >= _max_actuators) || (arg < PWM_LOWEST_MIN) || (arg > PWM_HIGHEST_MAX)) { ret = -EINVAL; } else { |