From 65a182a0681fef8e085791d087055f9e949332b9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 13 Feb 2017 10:55:29 +1100 Subject: [PATCH] Copter: not in log download upon log erase erase is a synchronous operation --- ArduCopter/GCS_Mavlink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 5f9046ce7a..df7a709ec6 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1797,9 +1797,10 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg) } case MAVLINK_MSG_ID_LOG_REQUEST_DATA: - case MAVLINK_MSG_ID_LOG_ERASE: copter.in_log_download = true; /* no break */ + case MAVLINK_MSG_ID_LOG_ERASE: + /* no break */ case MAVLINK_MSG_ID_LOG_REQUEST_LIST: if (!copter.in_mavlink_delay && !copter.motors->armed()) { handle_log_message(msg, copter.DataFlash);