From a38b030c418e9f91ae392e94dec82a9c634f67d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Jul 2019 18:06:02 +1000 Subject: [PATCH] RC_Channel: disable kill IMU with HAL_MINIMIZE_FEATURES --- libraries/RC_Channel/RC_Channel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 0f5a932eb4..2b860c6106 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -756,6 +756,7 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po } break; +#if !HAL_MINIMIZE_FEATURES case AUX_FUNC::KILL_IMU1: if (ch_flag == HIGH) { AP::ins().kill_imu(0, true); @@ -771,6 +772,7 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po AP::ins().kill_imu(1, false); } break; +#endif // HAL_MINIMIZE_FEATURES default: gcs().send_text(MAV_SEVERITY_INFO, "Invalid channel option (%u)", ch_option);