Skip to content

Commit d694155

Browse files
rishabsingh3003peterbarker
authored andcommitted
RC_Channel: Correct AHRS_ENABLED macro
1 parent baab852 commit d694155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/RC_Channel/RC_Channel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ void RC_Channel::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos
733733
#endif
734734
break;
735735

736+
// these functions require explicit initialization
736737
#if HAL_ADSB_ENABLED
737738
case AUX_FUNC::AVOID_ADSB:
738739
#endif
@@ -786,9 +787,9 @@ void RC_Channel::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos
786787
#endif
787788
#if AP_AHRS_ENABLED
788789
case AUX_FUNC::AHRS_TYPE:
790+
#endif
789791
run_aux_function(ch_option, ch_flag, AuxFuncTrigger::Source::INIT, ch_in);
790792
break;
791-
#endif
792793
default:
793794
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Failed to init: RC%u_OPTION: %u",
794795
(unsigned)(this->ch_in+1), (unsigned)ch_option);

0 commit comments

Comments
 (0)