mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Sub: StartUnstartedLogging replaces logging_started/start_logging
This commit is contained in:
parent
d3842c4630
commit
3c3fee6e38
@ -479,9 +479,7 @@ void Sub::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 Sub::log_init(void)
|
void Sub::log_init(void)
|
||||||
|
@ -300,9 +300,7 @@ bool Sub::should_log(uint32_t mask)
|
|||||||
if (!motors.armed() && !DataFlash.log_while_disarmed()) {
|
if (!motors.armed() && !DataFlash.log_while_disarmed()) {
|
||||||
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