diff --git a/src/ViewWidgets/LogDownloadController.cc b/src/ViewWidgets/LogDownloadController.cc index e97e420f4ec9f3c52c0519dfc1d62fb7ffe5e5cc..7f55a5f63c979c6ea49adb265b72dc5aa55c15a5 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";