Rover: StartUnstartedLogging replaces logging_started/start_logging

This commit is contained in:
Peter Barker 2017-06-09 15:42:11 +10:00 committed by Randy Mackay
parent 35a00473a8
commit 958fa18b1e
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() void Rover::start_logging()
{ {
in_mavlink_delay = true; in_mavlink_delay = true;
DataFlash.StartNewLog(); DataFlash.StartUnstartedLogging();
in_mavlink_delay = false; in_mavlink_delay = false;
} }

View File

@ -558,9 +558,7 @@ bool Rover::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;
} }