mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 10:38:28 -04:00
Copter: StartUnstartedLogging replaces logging_started/start_logging
This commit is contained in:
parent
cc7d75ea5d
commit
35a00473a8
@ -919,9 +919,7 @@ void Copter::start_logging()
|
|||||||
|
|
||||||
// dataflash may have stopped logging - when we get_log_data,
|
// dataflash may have stopped logging - when we get_log_data,
|
||||||
// for example. Always try to restart:
|
// for example. Always try to restart:
|
||||||
if (!DataFlash.logging_started()) {
|
DataFlash.StartUnstartedLogging();
|
||||||
DataFlash.StartNewLog();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Copter::log_init(void)
|
void Copter::log_init(void)
|
||||||
|
@ -504,9 +504,7 @@ bool Copter::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;
|
||||||
|
Loading…
Reference in New Issue
Block a user