RC_Channel: change AC_FENCE to AP_FENCE_ENABLED

This commit is contained in:
Iampete1 2022-07-19 12:33:13 +01:00 committed by Andrew Tridgell
parent 31bc6d9ec4
commit bab866268f
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ void RC_Channel::do_aux_function_runcam_osd_control(const AuxSwitchPos ch_flag)
// enable or disable the fence
void RC_Channel::do_aux_function_fence(const AuxSwitchPos ch_flag)
{
#if AC_FENCE
#if AP_FENCE_ENABLED
AC_Fence *fence = AP::fence();
if (fence == nullptr) {
return;