From b4afd5283bff3291f1bfabfc06d99e8af9c63e84 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Thu, 11 Aug 2016 12:04:12 -0400 Subject: [PATCH] Quickly handle downloading scattered gaps --- src/ViewWidgets/LogDownloadController.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ViewWidgets/LogDownloadController.cc b/src/ViewWidgets/LogDownloadController.cc index e97e420f4..7f55a5f63 100644 --- a/src/ViewWidgets/LogDownloadController.cc +++ b/src/ViewWidgets/LogDownloadController.cc @@ -365,6 +365,9 @@ LogDownloadController::_logData(UASInterface* uas, uint32_t ofs, uint16_t id, ui _requestLogData(_downloadData->ID, _downloadData->current_chunk*kChunkSize, _downloadData->chunk_table.size()*MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN); + } else if (bin < _downloadData->chunk_table.size() - 1 && _downloadData->chunk_table.at(bin+1)) { + // Likely to be grabbing fragments and got to the end of a gap + _findMissingData(); } } else { qWarning() << "Error while writing log file chunk"; -- 2.22.0