mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Button: set source index when running aux functions
This commit is contained in:
parent
2ff877688a
commit
81c5697948
@ -278,7 +278,7 @@ void AP_Button::run_aux_functions(bool force)
|
|||||||
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Button %i: executing (%s %s)", i+1, str, rc_channel->string_for_aux_pos(pos));
|
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Button %i: executing (%s %s)", i+1, str, rc_channel->string_for_aux_pos(pos));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
rc_channel->run_aux_function(func, pos, RC_Channel::AuxFuncTrigger::Source::BUTTON);
|
rc_channel->run_aux_function(func, pos, RC_Channel::AuxFuncTrigger::Source::BUTTON, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user