Tracker: not in log download upon log erase

erase is a synchronous operation
This commit is contained in:
Peter Barker 2017-02-13 10:54:19 +11:00 committed by Andrew Tridgell
parent e12e51f502
commit 9e42014387
1 changed files with 2 additions and 1 deletions

View File

@ -836,9 +836,10 @@ mission_failed:
}
case MAVLINK_MSG_ID_LOG_REQUEST_DATA:
case MAVLINK_MSG_ID_LOG_ERASE:
tracker.in_log_download = true;
/* no break */
case MAVLINK_MSG_ID_LOG_ERASE:
/* no break */
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
if (!tracker.in_mavlink_delay) {
handle_log_message(msg, tracker.DataFlash);