From 9526f7c677656ce3833e7be6a98aa7a4bf586fe6 Mon Sep 17 00:00:00 2001 From: Mark Whitehorn Date: Fri, 21 Aug 2015 06:08:46 -0600 Subject: [PATCH] fix rc_input_s ref --- .cproject | 4 ++-- src/drivers/px4fmu/fmu.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cproject b/.cproject index f90fe5d114..a4bd673686 100644 --- a/.cproject +++ b/.cproject @@ -18,7 +18,7 @@ - + @@ -77,7 +77,7 @@ - + diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 0010e6af5e..c7b29a1066 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -772,8 +772,8 @@ PX4FMU::task_main() // we have a new PPM frame. Publish it. rc_in.channel_count = ppm_decoded_channels; - if (rc_in.channel_count > RC_INPUT_MAX_CHANNELS) { - rc_in.channel_count = RC_INPUT_MAX_CHANNELS; + if (rc_in.channel_count > input_rc_s::RC_INPUT_MAX_CHANNELS) { + rc_in.channel_count = input_rc_s::RC_INPUT_MAX_CHANNELS; } for (uint8_t i = 0; i < rc_in.channel_count; i++) {