From 519a71504f8010457f69cd1d5a2326c4f3756b3d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 17 May 2021 16:51:35 +1000 Subject: [PATCH] AP_Compass: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED --- libraries/AP_Compass/AP_Compass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 8b95201d06..540eb45d7d 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -1557,7 +1557,7 @@ Compass::read(void) learn->update(); } #endif -#ifndef HAL_NO_LOGGING +#if HAL_LOGGING_ENABLED if (any_healthy && _log_bit != (uint32_t)-1 && AP::logger().should_log(_log_bit)) { AP::logger().Write_Compass(); }