Sub: eliminate calls to manipulate _writes_enabled

This commit is contained in:
Peter Barker 2017-06-09 12:33:54 +10:00 committed by Randy Mackay
parent 503c992208
commit c9a4119ee9
2 changed files with 0 additions and 9 deletions

View File

@ -482,9 +482,6 @@ void Sub::start_logging()
if (!DataFlash.logging_started()) {
DataFlash.StartNewLog();
}
// enable writes
DataFlash.EnableWrites(true);
}
void Sub::log_init(void)

View File

@ -120,12 +120,6 @@ void Sub::init_disarm_motors()
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
ahrs.set_correct_centrifugal(false);
hal.util->set_soft_armed(false);