mirror of https://github.com/ArduPilot/ardupilot
Sub: eliminate calls to manipulate _writes_enabled
This commit is contained in:
parent
503c992208
commit
c9a4119ee9
|
@ -482,9 +482,6 @@ void Sub::start_logging()
|
||||||
if (!DataFlash.logging_started()) {
|
if (!DataFlash.logging_started()) {
|
||||||
DataFlash.StartNewLog();
|
DataFlash.StartNewLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable writes
|
|
||||||
DataFlash.EnableWrites(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sub::log_init(void)
|
void Sub::log_init(void)
|
||||||
|
|
|
@ -120,12 +120,6 @@ void Sub::init_disarm_motors()
|
||||||
|
|
||||||
DataFlash_Class::instance()->set_vehicle_armed(false);
|
DataFlash_Class::instance()->set_vehicle_armed(false);
|
||||||
|
|
||||||
if (DataFlash.log_while_disarmed()) {
|
|
||||||
start_logging(); // create a new log if necessary
|
|
||||||
} else {
|
|
||||||
DataFlash.EnableWrites(false); // suspend logging
|
|
||||||
}
|
|
||||||
|
|
||||||
// disable gps velocity based centrefugal force compensation
|
// disable gps velocity based centrefugal force compensation
|
||||||
ahrs.set_correct_centrifugal(false);
|
ahrs.set_correct_centrifugal(false);
|
||||||
hal.util->set_soft_armed(false);
|
hal.util->set_soft_armed(false);
|
||||||
|
|
Loading…
Reference in New Issue