From 8c074c7b732577359f64bdab62b9afe29d86c37a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Jun 2017 23:03:57 +1000 Subject: [PATCH] Rover: simplify dataflash initialisation --- APMrover2/Log.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/APMrover2/Log.cpp b/APMrover2/Log.cpp index 00c44fe381..9c8f2add7b 100644 --- a/APMrover2/Log.cpp +++ b/APMrover2/Log.cpp @@ -472,15 +472,9 @@ const LogStructure Rover::log_structure[] = { void Rover::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"); - for (uint8_t i=0; i < num_gcs; i++) { - gcs_chan[i].reset_cli_timeout(); - } + + for (uint8_t i=0; i < num_gcs; i++) { + gcs_chan[i].reset_cli_timeout(); } if (g.log_bitmask != 0) {