From d36e8fa51e66a0ef82b3916f77d0b3653d6d3843 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 9 Jun 2017 12:33:44 +1000 Subject: [PATCH] Copter: eliminate calls to manipulate _writes_enabled --- ArduCopter/Log.cpp | 3 --- ArduCopter/motors.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/ArduCopter/Log.cpp b/ArduCopter/Log.cpp index 79d76bf639..aa474aae58 100644 --- a/ArduCopter/Log.cpp +++ b/ArduCopter/Log.cpp @@ -922,9 +922,6 @@ void Copter::start_logging() if (!DataFlash.logging_started()) { DataFlash.StartNewLog(); } - - // enable writes - DataFlash.EnableWrites(true); } void Copter::log_init(void) diff --git a/ArduCopter/motors.cpp b/ArduCopter/motors.cpp index 721f9890ae..6eb991cae5 100644 --- a/ArduCopter/motors.cpp +++ b/ArduCopter/motors.cpp @@ -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