mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
RC_Channel: detect duplicate aux functions with an ID >256
This commit is contained in:
parent
91423d4c71
commit
d16ff40162
@ -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
|
// duplicate_options_exist - returns true if any options are duplicated
|
||||||
bool RC_Channels::duplicate_options_exist()
|
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++) {
|
for (uint8_t i=0; i<NUM_RC_CHANNELS; i++) {
|
||||||
const RC_Channel *c = channel(i);
|
const RC_Channel *c = channel(i);
|
||||||
if (c == nullptr) {
|
if (c == nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user