fix rc_input_s ref

This commit is contained in:
Mark Whitehorn
2015-08-21 14:53:41 +02:00
committed by Lorenz Meier
parent dc0f8e2ab1
commit 9526f7c677
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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++) {