Plane: StartUnstartedLogging replaces logging_started/start_logging

This commit is contained in:
Peter Barker 2017-06-09 15:42:41 +10:00 committed by Randy Mackay
parent 958fa18b1e
commit 4abfcd0bd1
2 changed files with 2 additions and 4 deletions

View File

@ -561,7 +561,7 @@ void Plane::Log_Write_Vehicle_Startup_Messages()
// start a new log // start a new log
void Plane::start_logging() void Plane::start_logging()
{ {
DataFlash.StartNewLog(); DataFlash.StartUnstartedLogging();
} }
/* /*

View File

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