From bab866268fdf3526adbb93274186e8200d312c2b Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 19 Jul 2022 12:33:13 +0100 Subject: [PATCH] RC_Channel: change AC_FENCE to AP_FENCE_ENABLED --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 9e4a889798..929ec02fc1 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -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;