Skip to content

Commit

Permalink
RC_Channel: detect duplicate aux functions with an ID >256
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade authored and peterbarker committed May 23, 2024
1 parent 91423d4 commit d16ff40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/RC_Channel/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ RC_Channel *RC_Channels::find_channel_for_option(const RC_Channel::AUX_FUNC opti
// duplicate_options_exist - returns true if any options are duplicated
bool RC_Channels::duplicate_options_exist()
{
uint8_t auxsw_option_counts[256] = {};
uint8_t auxsw_option_counts[512] = {};
for (uint8_t i=0; i<NUM_RC_CHANNELS; i++) {
const RC_Channel *c = channel(i);
if (c == nullptr) {
Expand Down

0 comments on commit d16ff40

Please sign in to comment.