Skip to content

Commit

Permalink
AP_Logger: make logging_started const
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Nov 6, 2024
1 parent e485959 commit 70c277b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_Logger/AP_Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Logger/AP_Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 70c277b

Please sign in to comment.