From b20c050402dfe11e1f0d0002020205872b96172d Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 26 Jan 2013 12:27:03 -0800 Subject: Fix two protocol-related typos; get the right status flag name for raw PWM; read back the correct page for PWM output. --- apps/drivers/px4io/px4io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/drivers/px4io/px4io.cpp') 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; -- cgit v1.2.3