RC_Channel: detect duplicate aux functions with an ID >256

This commit is contained in:
Stephen Dade 2024-05-22 20:08:08 +10:00 committed by Peter Barker
parent 91423d4c71
commit d16ff40162
1 changed files with 1 additions and 1 deletions

View File

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