Commit 0bd1cbf6 authored by Gus Grubba's avatar Gus Grubba

Merge pull request #2654 from dogmaphobic/apmLogHickups

Stop paying attention to heartbeats while downloading logs.
parents bfcdc783 bad14db1
......@@ -326,8 +326,7 @@ LogDownloadController::_receivedAllData()
_requestLogData(_downloadData->ID, 0, _downloadData->entry->size());
} else {
_resetSelection();
_downloadingLogs = false;
emit downloadingLogsChanged();
_setDownloading(false);
}
}
......@@ -456,8 +455,7 @@ LogDownloadController::download(void)
}
}
//-- Start download process
_downloadingLogs = true;
emit downloadingLogsChanged();
_setDownloading(true);
_receivedAllData();
}
}
......@@ -545,6 +543,15 @@ LogDownloadController::_prepareLogDownload()
return result;
}
//----------------------------------------------------------------------------------------
void
LogDownloadController::_setDownloading(bool active)
{
_downloadingLogs = active;
_vehicle->setConnectionLostEnabled(!active);
emit downloadingLogsChanged();
}
//----------------------------------------------------------------------------------------
void
LogDownloadController::eraseAll(void)
......@@ -577,8 +584,7 @@ LogDownloadController::cancel(void)
_downloadData = 0;
}
_resetSelection(true);
_downloadingLogs = false;
emit downloadingLogsChanged();
_setDownloading(false);
}
//-----------------------------------------------------------------------------
......
......@@ -176,6 +176,7 @@ private:
void _requestLogList (uint32_t start = 0, uint32_t end = 0xFFFF);
void _requestLogData (uint8_t id, uint32_t offset = 0, uint32_t count = 0xFFFFFFFF);
bool _prepareLogDownload();
void _setDownloading (bool active);
QGCLogEntry* _getNextSelected();
......
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