aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/px4io/px4io.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-11-13 10:03:39 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-11-13 10:03:39 +0100
commit050698bedc9340bfc23ed18dfa84de664747e678 (patch)
tree76c9eeff83abe810221a3fada7ae79dcd4aa25ee /apps/drivers/px4io/px4io.cpp
parenta1059c5657d9d2b83d0ef7fe51b0997bb983d86e (diff)
downloadpx4-firmware-050698bedc9340bfc23ed18dfa84de664747e678.tar.gz
px4-firmware-050698bedc9340bfc23ed18dfa84de664747e678.tar.bz2
px4-firmware-050698bedc9340bfc23ed18dfa84de664747e678.zip
Added missing channel count in px4io driver
Diffstat (limited to 'apps/drivers/px4io/px4io.cpp')
-rw-r--r--apps/drivers/px4io/px4io.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp
index 72c7e34a1..0e84760d5 100644
--- a/apps/drivers/px4io/px4io.cpp
+++ b/apps/drivers/px4io/px4io.cpp
@@ -467,6 +467,7 @@ PX4IO::rx_callback(const uint8_t *buffer, size_t bytes_received)
/* publish raw rc channel values from IO */
_input_rc.timestamp = hrt_absolute_time();
+ _input_rc.channel_count = rep->channel_count;
for (int i = 0; i < rep->channel_count; i++)
{
_input_rc.values[i] = rep->rc_channel[i];