mirror of https://github.com/ArduPilot/ardupilot
Plane: do not reset LOG_BITMASK when no CardInserted
This really just confuses everyone
This commit is contained in:
parent
a191792e4b
commit
d11578f203
|
@ -538,7 +538,6 @@ void Plane::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();
|
||||||
|
|
Loading…
Reference in New Issue