AP_Logger: remove unused _log_file_size_bytes variable

AP_Logger: comment corection
This commit is contained in:
Peter Barker 2024-07-04 12:05:26 +10:00 committed by Peter Barker
parent 0e4124060c
commit c1c3580f8b
3 changed files with 1 additions and 4 deletions

View File

@ -100,7 +100,6 @@ void AP_Logger_Backend::start_new_log_reset_variables()
_dropped = 0;
_startup_messagewriter->reset();
_front.backend_starting_new_log(this);
_log_file_size_bytes = 0;
_formats_written.clearall();
}
@ -709,7 +708,6 @@ void AP_Logger_Backend::df_stats_gather(const uint16_t bytes_written, uint32_t s
}
stats.buf_space_sigma += space_remaining;
stats.bytes += bytes_written;
_log_file_size_bytes += bytes_written;
stats.blocks++;
}

View File

@ -208,7 +208,6 @@ protected:
uint16_t _cached_oldest_log;
uint32_t _dropped;
uint32_t _log_file_size_bytes;
// should we rotate when we next stop logging
bool _rotate_pending;

View File

@ -541,7 +541,7 @@ void AP_Logger_Block::stop_logging_async(void)
void AP_Logger_Block::start_new_log(void)
{
if (erase_started) {
// already erasing
// currently erasing
return;
}