From 0b4a53db090d7984843390dda45e4c6292112398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 20 Sep 2017 15:48:01 +0200 Subject: [PATCH] LogDownloadController: only skip entry if size==0 && APM firmware On PX4, under certain circumstances and in rare cases, there can be log files with 0 size. In that case QGC ignored the entry and tried to re-request the entry indefinitely. --- src/AnalyzeView/LogDownloadController.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnalyzeView/LogDownloadController.cc b/src/AnalyzeView/LogDownloadController.cc index 611d102..ed912a4 100644 --- a/src/AnalyzeView/LogDownloadController.cc +++ b/src/AnalyzeView/LogDownloadController.cc @@ -173,7 +173,7 @@ LogDownloadController::_logEntry(UASInterface* uas, uint32_t time_utc, uint32_t //-- Update this log record if(num_logs > 0) { //-- Skip if empty (APM first packet) - if(size) { + if(size || _vehicle->firmwareType() != MAV_AUTOPILOT_ARDUPILOTMEGA) { id -= _apmOneBased; if(id < _logEntriesModel.count()) { QGCLogEntry* entry = _logEntriesModel[id];