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++) {