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