mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-15 14:53:32 +08:00
RC_Channel: use reference while iterating to find string for aux func
This commit is contained in:
committed by
Peter Barker
parent
59dcf18558
commit
b0ceee2c42
@@ -586,7 +586,7 @@ const RC_Channel::LookupTable RC_Channel::lookuptable[] = {
|
||||
/* lookup the announcement for switch change */
|
||||
const char *RC_Channel::string_for_aux_function(AUX_FUNC function) const
|
||||
{
|
||||
for (const struct LookupTable entry : lookuptable) {
|
||||
for (const struct LookupTable &entry : lookuptable) {
|
||||
if (entry.option == function) {
|
||||
return entry.announcement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user