RC_Channel: fix complation without fence
This commit is contained in:
parent
5fa29eb01a
commit
5d5552aa93
@ -777,12 +777,14 @@ 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
|
||||
AC_Fence *fence = AP::fence();
|
||||
if (fence == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
fence->enable(ch_flag == AuxSwitchPos::HIGH);
|
||||
#endif
|
||||
}
|
||||
|
||||
void RC_Channel::do_aux_function_clear_wp(const AuxSwitchPos ch_flag)
|
||||
|
Loading…
Reference in New Issue
Block a user