mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Sub: do not reset LOG_BITMASK when no CardInserted
This really just confuses everyone
This commit is contained in:
parent
3bcc410048
commit
6f7954298c
@ -487,7 +487,6 @@ void Sub::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
Block a user