From c6beb3a8673b8bdcf028aa69350382c06bdefeeb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Jun 2017 23:04:31 +1000 Subject: [PATCH] Plane: simplify dataflash initialisation --- ArduPlane/Log.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index 07cb91c392..5e0e4b902c 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -570,14 +570,8 @@ void Plane::start_logging() void Plane::log_init(void) { DataFlash.Init(log_structure, ARRAY_SIZE(log_structure)); - if (!DataFlash.CardInserted()) { - gcs_send_text(MAV_SEVERITY_WARNING, "No dataflash card inserted"); - } else if (DataFlash.NeedPrep()) { - gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system"); - DataFlash.Prep(); - gcs_send_text(MAV_SEVERITY_INFO, "Prepared log system"); - gcs().reset_cli_timeout(); - } + + gcs().reset_cli_timeout(); } #else // LOGGING_ENABLED