diff options
author | px4dev <px4@purgatory.org> | 2013-01-26 12:27:03 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-26 12:27:03 -0800 |
commit | b20c050402dfe11e1f0d0002020205872b96172d (patch) | |
tree | fa7e87e9833562e76a137e7087e5b48339070420 | |
parent | f854e2f79133c93c56a40645fd37a103a26b4623 (diff) | |
download | px4-firmware-b20c050402dfe11e1f0d0002020205872b96172d.tar.gz px4-firmware-b20c050402dfe11e1f0d0002020205872b96172d.tar.bz2 px4-firmware-b20c050402dfe11e1f0d0002020205872b96172d.zip |
Fix two protocol-related typos; get the right status flag name for raw PWM; read back the correct page for PWM output.
-rw-r--r-- | apps/drivers/px4io/px4io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index a0e9b18d2..1678ed0de 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -742,7 +742,7 @@ PX4IO::io_publish_mixed_controls() return OK; /* if not taking raw PPM from us, must be mixing */ - if (_status & PX4IO_P_STATUS_FLAGS_RAW_PPM) + if (_status & PX4IO_P_STATUS_FLAGS_RAW_PWM) return OK; /* data we are going to fetch */ @@ -981,7 +981,7 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg) ret = -EINVAL; } else { /* send a direct PWM value */ - ret = io_reg_set(PX4IO_PAGE_DIRECT_PWM, channel, arg); + ret = io_reg_set(PX4IO_PAGE_SERVOS, channel, arg); } break; |