Skip to content

Commit

Permalink
RC_Channel: Notify function error if ADS-B is not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura authored and peterbarker committed Apr 11, 2024
1 parent b849fbb commit f605c0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/RC_Channel/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ void RC_Channel::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos
// not really aux functions:
case AUX_FUNC::LOWEHEISER_THROTTLE:
break;
#if HAL_ADSB_ENABLED
case AUX_FUNC::AVOID_ADSB:
#endif
case AUX_FUNC::AVOID_PROXIMITY:
case AUX_FUNC::FENCE:
case AUX_FUNC::GPS_DISABLE:
Expand Down Expand Up @@ -1339,9 +1341,11 @@ bool RC_Channel::do_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch
do_aux_function_mission_reset(ch_flag);
break;

#if HAL_ADSB_ENABLED
case AUX_FUNC::AVOID_ADSB:
do_aux_function_avoid_adsb(ch_flag);
break;
#endif

case AUX_FUNC::FFT_NOTCH_TUNE:
do_aux_function_fft_notch_tune(ch_flag);
Expand Down

0 comments on commit f605c0f

Please sign in to comment.