Rover: do not reset LOG_BITMASK when no CardInserted

This commit is contained in:
Peter Barker 2016-11-06 10:00:25 +11:00 committed by Tom Pittenger
parent 7069730d5f
commit 09f16fbe79
1 changed files with 0 additions and 1 deletions

View File

@ -443,7 +443,6 @@ void Rover::log_init(void)
DataFlash.Init(log_structure, ARRAY_SIZE(log_structure)); DataFlash.Init(log_structure, ARRAY_SIZE(log_structure));
if (!DataFlash.CardInserted()) { if (!DataFlash.CardInserted()) {
gcs_send_text(MAV_SEVERITY_WARNING, "No dataflash card inserted"); gcs_send_text(MAV_SEVERITY_WARNING, "No dataflash card inserted");
g.log_bitmask.set(0);
} else if (DataFlash.NeedPrep()) { } else if (DataFlash.NeedPrep()) {
gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system"); gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system");
DataFlash.Prep(); DataFlash.Prep();