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
e78f74f6
Commit
e78f74f6
authored
Aug 21, 2018
by
Don Gagne
Browse files
Back up further from end of file to handle more cases
parent
cfa6ef5c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/comm/LogReplayLink.cc
View file @
e78f74f6
...
...
@@ -269,7 +269,7 @@ bool LogReplayLink::_loadLogFile(void)
// timestamp size. This guarantees that we will hit a MAVLink packet before
// the end of the file. Unfortunately, it basically guarantees that we will
// hit more than one. This is why we have to search for a bit.
qint64
fileLoc
=
_logFile
.
size
()
-
MAVLINK_MAX_PACKET_LEN
-
cbTimestamp
;
qint64
fileLoc
=
_logFile
.
size
()
-
((
MAVLINK_MAX_PACKET_LEN
-
cbTimestamp
)
*
2
)
;
_logFile
.
seek
(
fileLoc
);
quint64
endTimeUSecs
=
startTimeUSecs
;
// Set a sane default for the endtime
mavlink_message_t
msg
;
...
...
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