From 62f1d40d3b133426039802e27ecf438a5a48ccc3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 13 Feb 2024 11:26:08 +1100 Subject: [PATCH] ArduSub: allow HarmonicNotches to be compiled out of the code --- ArduSub/ArduSub.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduSub/ArduSub.cpp b/ArduSub/ArduSub.cpp index 3fb26d2755..c6aa99373e 100644 --- a/ArduSub/ArduSub.cpp +++ b/ArduSub/ArduSub.cpp @@ -322,7 +322,9 @@ void Sub::update_altitude() #if HAL_LOGGING_ENABLED if (should_log(MASK_LOG_CTUN)) { Log_Write_Control_Tuning(); +#if AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED AP::ins().write_notch_log_messages(); +#endif #if HAL_GYROFFT_ENABLED gyro_fft.write_log_messages(); #endif