Sub: call dataflash should_log method

This commit is contained in:
Peter Barker 2017-06-14 22:46:24 +10:00 committed by Francisco Ferreira
parent 07e37281ef
commit e0e78d83e5
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ bool Sub::should_log(uint32_t mask)
if (!(mask & g.log_bitmask)) {
return false;
}
if (!motors.armed() && !DataFlash.log_while_disarmed()) {
if (!DataFlash.should_log()) {
return false;
}
start_logging();