mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Sub: call dataflash should_log method
This commit is contained in:
parent
07e37281ef
commit
e0e78d83e5
@ -297,7 +297,7 @@ bool Sub::should_log(uint32_t mask)
|
|||||||
if (!(mask & g.log_bitmask)) {
|
if (!(mask & g.log_bitmask)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!motors.armed() && !DataFlash.log_while_disarmed()) {
|
if (!DataFlash.should_log()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
start_logging();
|
start_logging();
|
||||||
|
Loading…
Reference in New Issue
Block a user