Commit 3f63baf5 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3929 from NaterGator/logdlrate

Quickly handle downloading scattered gaps
parents 589046c1 b4afd528
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment