mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Logger: remove unused _log_file_size_bytes variable
AP_Logger: comment corection
This commit is contained in:
parent
0e4124060c
commit
c1c3580f8b
@ -100,7 +100,6 @@ void AP_Logger_Backend::start_new_log_reset_variables()
|
|||||||
_dropped = 0;
|
_dropped = 0;
|
||||||
_startup_messagewriter->reset();
|
_startup_messagewriter->reset();
|
||||||
_front.backend_starting_new_log(this);
|
_front.backend_starting_new_log(this);
|
||||||
_log_file_size_bytes = 0;
|
|
||||||
_formats_written.clearall();
|
_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.buf_space_sigma += space_remaining;
|
||||||
stats.bytes += bytes_written;
|
stats.bytes += bytes_written;
|
||||||
_log_file_size_bytes += bytes_written;
|
|
||||||
stats.blocks++;
|
stats.blocks++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +208,6 @@ protected:
|
|||||||
uint16_t _cached_oldest_log;
|
uint16_t _cached_oldest_log;
|
||||||
|
|
||||||
uint32_t _dropped;
|
uint32_t _dropped;
|
||||||
uint32_t _log_file_size_bytes;
|
|
||||||
// should we rotate when we next stop logging
|
// should we rotate when we next stop logging
|
||||||
bool _rotate_pending;
|
bool _rotate_pending;
|
||||||
|
|
||||||
|
@ -541,7 +541,7 @@ void AP_Logger_Block::stop_logging_async(void)
|
|||||||
void AP_Logger_Block::start_new_log(void)
|
void AP_Logger_Block::start_new_log(void)
|
||||||
{
|
{
|
||||||
if (erase_started) {
|
if (erase_started) {
|
||||||
// already erasing
|
// currently erasing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user