From d28a867453ddc2a20b37f62332a63f148d9bcc94 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:04 +1000 Subject: [PATCH] AC_WPNav: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AC_WPNav/AC_Circle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AC_WPNav/AC_Circle.cpp b/libraries/AC_WPNav/AC_Circle.cpp index ca804a5491..b1f88a4094 100644 --- a/libraries/AC_WPNav/AC_Circle.cpp +++ b/libraries/AC_WPNav/AC_Circle.cpp @@ -121,7 +121,7 @@ void AC_Circle::set_center(const Location& center) } else { // failed to convert location so set to current position and log error set_center(_inav.get_position_neu_cm(), false); - AP::logger().Write_Error(LogErrorSubsystem::NAVIGATION, LogErrorCode::FAILED_CIRCLE_INIT); + LOGGER_WRITE_ERROR(LogErrorSubsystem::NAVIGATION, LogErrorCode::FAILED_CIRCLE_INIT); } } else { // convert Location with alt-above-home, alt-above-origin or absolute alt @@ -129,7 +129,7 @@ void AC_Circle::set_center(const Location& center) if (!center.get_vector_from_origin_NEU(circle_center_neu)) { // default to current position and log error circle_center_neu = _inav.get_position_neu_cm(); - AP::logger().Write_Error(LogErrorSubsystem::NAVIGATION, LogErrorCode::FAILED_CIRCLE_INIT); + LOGGER_WRITE_ERROR(LogErrorSubsystem::NAVIGATION, LogErrorCode::FAILED_CIRCLE_INIT); } set_center(circle_center_neu, false); }