Copter: StartUnstartedLogging replaces logging_started/start_logging

This commit is contained in:
Peter Barker 2017-06-09 15:09:40 +10:00 committed by Randy Mackay
parent cc7d75ea5d
commit 35a00473a8
2 changed files with 2 additions and 6 deletions

View File

@ -919,9 +919,7 @@ void Copter::start_logging()
// dataflash may have stopped logging - when we get_log_data,
// for example. Always try to restart:
if (!DataFlash.logging_started()) {
DataFlash.StartNewLog();
}
DataFlash.StartUnstartedLogging();
}
void Copter::log_init(void)

View File

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