Skip to content

Commit

Permalink
application layer only, no drivers affected: Fix overflow in RC input…
Browse files Browse the repository at this point in the history
… topic - this topic is deprecated and will be removed, has been superseded by input_rc and manual_control
  • Loading branch information
LorenzMeier committed Nov 7, 2014
1 parent 23a33e3 commit 43418a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/uORB/topics/rc_channels.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
/**
* @file rc_channels.h
* Definition of the rc_channels uORB topic.
*
* @deprecated DO NOT USE FOR NEW CODE
*/

#ifndef RC_CHANNELS_H_
Expand Down Expand Up @@ -63,10 +65,13 @@ enum RC_CHANNELS_FUNCTION {
AUX_2,
AUX_3,
AUX_4,
AUX_5,
RC_CHANNELS_FUNCTION_MAX /**< Indicates the number of functions. There can be more functions than RC channels. */
AUX_5
};

// MAXIMUM FUNCTIONS IS != MAXIMUM RC INPUT CHANNELS

#define RC_CHANNELS_FUNCTION_MAX 18

/**
* @addtogroup topics
* @{
Expand Down

0 comments on commit 43418a6

Please sign in to comment.