Commit 0b4a53db authored by Beat Küng's avatar Beat Küng

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.
parent add505fa
......@@ -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];
......
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