Rover: StartUnstartedLogging replaces logging_started/start_logging

This commit is contained in:
Peter Barker 2017-06-09 15:42:11 +10:00 committed by Francisco Ferreira
parent 3ee56f5475
commit 81b19204c3
2 changed files with 2 additions and 4 deletions

View File

@ -517,7 +517,7 @@ void Rover::Log_Write_Vehicle_Startup_Messages()
void Rover::start_logging()
{
in_mavlink_delay = true;
DataFlash.StartNewLog();
DataFlash.StartUnstartedLogging();
in_mavlink_delay = false;
}

View File

@ -556,9 +556,7 @@ bool Rover::should_log(uint32_t mask)
if (in_log_download) {
return false;
}
if (!DataFlash.logging_started()) {
start_logging();
}
return true;
}