Copter: eliminate calls to manipulate _writes_enabled

This commit is contained in:
Peter Barker 2017-06-09 12:33:44 +10:00 committed by Francisco Ferreira
parent d365a91bae
commit d36e8fa51e
2 changed files with 0 additions and 7 deletions

View File

@ -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)

View File

@ -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