From bf49716520d895178721fdd7d88661f35c50a9b0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:07 +1000 Subject: [PATCH] AP_PiccoloCAN: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp index ef07781772..bbaec88f3e 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp @@ -361,6 +361,7 @@ void AP_PiccoloCAN::update() } #endif // AP_EFI_CURRAWONG_ECU_ENABLED +#if HAL_LOGGING_ENABLED AP_Logger *logger = AP_Logger::get_singleton(); // Push received telemetry data into the logging system @@ -397,6 +398,9 @@ void AP_PiccoloCAN::update() } } } +#else + (void)timestamp; +#endif // HAL_LOGGING_ENABLED } #if HAL_GCS_ENABLED