mirror of https://github.com/ArduPilot/ardupilot
Copter: eliminate calls to manipulate _writes_enabled
This commit is contained in:
parent
d365a91bae
commit
d36e8fa51e
|
@ -922,9 +922,6 @@ void Copter::start_logging()
|
||||||
if (!DataFlash.logging_started()) {
|
if (!DataFlash.logging_started()) {
|
||||||
DataFlash.StartNewLog();
|
DataFlash.StartNewLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable writes
|
|
||||||
DataFlash.EnableWrites(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Copter::log_init(void)
|
void Copter::log_init(void)
|
||||||
|
|
|
@ -259,10 +259,6 @@ void Copter::init_disarm_motors()
|
||||||
// reset the mission
|
// reset the mission
|
||||||
mission.reset();
|
mission.reset();
|
||||||
|
|
||||||
// suspend logging
|
|
||||||
if (!DataFlash.log_while_disarmed()) {
|
|
||||||
DataFlash.EnableWrites(false);
|
|
||||||
}
|
|
||||||
DataFlash_Class::instance()->set_vehicle_armed(false);
|
DataFlash_Class::instance()->set_vehicle_armed(false);
|
||||||
|
|
||||||
// disable gps velocity based centrefugal force compensation
|
// disable gps velocity based centrefugal force compensation
|
||||||
|
|
Loading…
Reference in New Issue