From 9d0ca268971664eef86581eb20a35a7baf2e1a4c Mon Sep 17 00:00:00 2001 From: Stephen Dade Date: Wed, 22 May 2024 20:08:08 +1000 Subject: [PATCH] RC_Channel: detect duplicate aux functions with an ID >256 --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 04a96b0b5b942..f3cecf7e4a4ae 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -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