Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bad14db1
Commit
bad14db1
authored
Jan 17, 2016
by
dogmaphobic
Browse files
Stop paying attention to heartbeats while downloading logs.
parent
550bac9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ViewWidgets/LogDownloadController.cc
View file @
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
);
}
//-----------------------------------------------------------------------------
...
...
src/ViewWidgets/LogDownloadController.h
View file @
bad14db1
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment