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
d7113000
Commit
d7113000
authored
Sep 13, 2012
by
Lorenz Meier
Browse files
Adjusted sanity check
parent
f94531e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/MAVLinkProtocol.cc
View file @
d7113000
...
@@ -297,7 +297,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
...
@@ -297,7 +297,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
// Write message to buffer
// Write message to buffer
int
len
=
mavlink_msg_to_send_buffer
(
buf
+
sizeof
(
quint64
),
&
message
);
int
len
=
mavlink_msg_to_send_buffer
(
buf
+
sizeof
(
quint64
),
&
message
);
QByteArray
b
((
const
char
*
)
buf
,
len
);
QByteArray
b
((
const
char
*
)
buf
,
len
);
if
(
m_logfile
->
write
(
b
)
<
static_cast
<
qint64
>
(
MAVLINK_MAX_PACKET_LEN
+
sizeof
(
quint64
))
)
if
(
m_logfile
->
write
(
b
)
!=
len
)
{
{
emit
protocolStatusMessage
(
tr
(
"MAVLink Logging failed"
),
tr
(
"Could not write to file %1, disabling logging."
).
arg
(
m_logfile
->
fileName
()));
emit
protocolStatusMessage
(
tr
(
"MAVLink Logging failed"
),
tr
(
"Could not write to file %1, disabling logging."
).
arg
(
m_logfile
->
fileName
()));
// Stop logging
// Stop logging
...
...
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