Browse Source

RC_Channel: fix complation without fence

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
5d5552aa93
  1. 2
      libraries/RC_Channel/RC_Channel.cpp

2
libraries/RC_Channel/RC_Channel.cpp

@ -777,12 +777,14 @@ void RC_Channel::do_aux_function_runcam_osd_control(const AuxSwitchPos ch_flag) @@ -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…
Cancel
Save