From 6f7954298c6b44869be5feb8bf630d388e7ebead Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Jun 2017 22:48:05 +1000 Subject: [PATCH] Sub: do not reset LOG_BITMASK when no CardInserted This really just confuses everyone --- ArduSub/Log.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/ArduSub/Log.cpp b/ArduSub/Log.cpp index 66b0cecc0d..7336f94ff8 100644 --- a/ArduSub/Log.cpp +++ b/ArduSub/Log.cpp @@ -487,7 +487,6 @@ void Sub::log_init(void) DataFlash.Init(log_structure, ARRAY_SIZE(log_structure)); if (!DataFlash.CardInserted()) { gcs_send_text(MAV_SEVERITY_WARNING, "No dataflash card inserted"); - g.log_bitmask.set(0); } else if (DataFlash.NeedPrep()) { gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system"); DataFlash.Prep();