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
a2a20353
Commit
a2a20353
authored
Mar 25, 2016
by
Nate Weibley
Browse files
Fix BluetoothLink::writeBytes reference to size
parent
0aaca176
Changes
1
Show whitespace changes
Inline
Side-by-side
src/comm/BluetoothLink.cc
View file @
a2a20353
...
@@ -96,7 +96,7 @@ void BluetoothLink::writeBytes(const QByteArray bytes)
...
@@ -96,7 +96,7 @@ void BluetoothLink::writeBytes(const QByteArray bytes)
if
(
_targetSocket
->
isWritable
())
if
(
_targetSocket
->
isWritable
())
{
{
if
(
_targetSocket
->
write
(
bytes
)
>
0
)
{
if
(
_targetSocket
->
write
(
bytes
)
>
0
)
{
_logOutputDataRate
(
size
,
QDateTime
::
currentMSecsSinceEpoch
());
_logOutputDataRate
(
bytes
.
size
()
,
QDateTime
::
currentMSecsSinceEpoch
());
}
}
else
else
qWarning
()
<<
"Bluetooth write error"
;
qWarning
()
<<
"Bluetooth write error"
;
...
...
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