|
|
|
@ -489,7 +489,7 @@ static bool should_log(uint32_t mask)
@@ -489,7 +489,7 @@ static bool should_log(uint32_t mask)
|
|
|
|
|
if (!(mask & g.log_bitmask) || in_mavlink_delay) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
bool ret = ahrs.get_armed() || (g.log_bitmask & MASK_LOG_WHEN_DISARMED) != 0; |
|
|
|
|
bool ret = hal.util->get_soft_armed() || (g.log_bitmask & MASK_LOG_WHEN_DISARMED) != 0; |
|
|
|
|
if (ret && !DataFlash.logging_started() && !in_log_download) { |
|
|
|
|
// we have to set in_mavlink_delay to prevent logging while |
|
|
|
|
// writing headers |
|
|
|
|