RC_Channel: move AC_Avoidance defines into libraries

This commit is contained in:
Peter Barker 2024-03-09 13:35:26 +11:00 committed by Peter Barker
parent 277a7c1bec
commit 4781938694
1 changed files with 1 additions and 1 deletions

View File

@ -891,7 +891,7 @@ void RC_Channel::do_aux_function_avoid_adsb(const AuxSwitchPos ch_flag)
void RC_Channel::do_aux_function_avoid_proximity(const AuxSwitchPos ch_flag)
{
#if !APM_BUILD_TYPE(APM_BUILD_ArduPlane)
#if AP_AVOIDANCE_ENABLED && !APM_BUILD_TYPE(APM_BUILD_ArduPlane)
AC_Avoid *avoid = AP::ac_avoid();
if (avoid == nullptr) {
return;