From 70c277b759966ac6d71ad1746c9791d81514881f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 9 Oct 2024 11:26:57 +1100 Subject: [PATCH] AP_Logger: make logging_started const --- libraries/AP_Logger/AP_Logger.cpp | 2 +- libraries/AP_Logger/AP_Logger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index bda620b223f32..60d4e4a1b2dd0 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -833,7 +833,7 @@ uint16_t AP_Logger::get_max_num_logs() { } /* we're started if any of the backends are started */ -bool AP_Logger::logging_started(void) { +bool AP_Logger::logging_started(void) const { for (uint8_t i=0; i< _next_backend; i++) { if (backends[i]->logging_started()) { return true; diff --git a/libraries/AP_Logger/AP_Logger.h b/libraries/AP_Logger/AP_Logger.h index 3d25ca19d1085..9fe2c07f26a14 100644 --- a/libraries/AP_Logger/AP_Logger.h +++ b/libraries/AP_Logger/AP_Logger.h @@ -301,7 +301,7 @@ class AP_Logger // returns true if logging of a message should be attempted bool should_log(uint32_t mask) const; - bool logging_started(void); + bool logging_started(void) const; #if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX // currently only AP_Logger_File support this: