Commit dd36db00 authored by dogmaphobic's avatar dogmaphobic

Fix MockLink unit test for mobile.

parent dc3d1d96
......@@ -11,7 +11,9 @@
#include "MockLink.h"
#include "QGCLoggingCategory.h"
#include "QGCApplication.h"
#ifndef __mobile__
#include "UnitTest.h"
#endif
#include <QTimer>
#include <QDebug>
......@@ -1142,7 +1144,9 @@ void MockLink::_handleLogRequestData(const mavlink_message_t& msg)
mavlink_msg_log_request_data_decode(&msg, &request);
if (_logDownloadFilename.isEmpty()) {
#ifndef __mobile__
_logDownloadFilename = UnitTest::createRandomFile(_logDownloadFileSize);
#endif
}
if (request.id != 0) {
......
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