From b57a4e9685215343e1d1d524f1d4dfd3c0a4dc2e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 15 Jun 2017 09:27:38 +1000 Subject: [PATCH] Plane: call dataflash should_log method --- ArduPlane/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 9511b81c22..39c7888c1e 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -841,7 +841,7 @@ bool Plane::should_log(uint32_t mask) if (!(mask & g.log_bitmask)) { return false; } - if (!hal.util->get_soft_armed() && !DataFlash.log_while_disarmed()) { + if (!DataFlash.should_log()) { return false; } if (in_log_download) {