AP_Arming: rename 'enum aux_switch_pos_t' to 'enum class AuxSwitchPos'

This commit is contained in:
Peter Barker 2020-06-03 12:21:50 +10:00 committed by Peter Barker
parent 88f4232e46
commit 8fd50dd66e
1 changed files with 1 additions and 1 deletions

View File

@ -1241,7 +1241,7 @@ bool AP_Arming::disarm_switch_checks(bool display_failure) const
{
const RC_Channel *chan = rc().find_channel_for_option(RC_Channel::AUX_FUNC::DISARM);
if (chan != nullptr &&
chan->get_aux_switch_pos() == RC_Channel::aux_switch_pos_t::HIGH &&
chan->get_aux_switch_pos() == RC_Channel::AuxSwitchPos::HIGH &&
(checks_to_perform & ARMING_CHECK_ALL)) {
check_failed(display_failure, "Disarm Switch on");
return false;