From 1cc2517e1e95d74a803afeed3aba894fc50c39b8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:07 +1000 Subject: [PATCH] AP_Parachute: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AP_Parachute/AP_Parachute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Parachute/AP_Parachute.cpp b/libraries/AP_Parachute/AP_Parachute.cpp index 4cdf7ce692..aae6ea9bc9 100644 --- a/libraries/AP_Parachute/AP_Parachute.cpp +++ b/libraries/AP_Parachute/AP_Parachute.cpp @@ -93,7 +93,7 @@ void AP_Parachute::enabled(bool on_off) // clear release_time _release_time = 0; - AP::logger().Write_Event(_enabled ? LogEvent::PARACHUTE_ENABLED : LogEvent::PARACHUTE_DISABLED); + LOGGER_WRITE_EVENT(_enabled ? LogEvent::PARACHUTE_ENABLED : LogEvent::PARACHUTE_DISABLED); } /// release - release parachute @@ -105,7 +105,7 @@ void AP_Parachute::release() } GCS_SEND_TEXT(MAV_SEVERITY_INFO,"Parachute: Released"); - AP::logger().Write_Event(LogEvent::PARACHUTE_RELEASED); + LOGGER_WRITE_EVENT(LogEvent::PARACHUTE_RELEASED); // set release time to current system time if (_release_time == 0) {