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
2af98191
Commit
2af98191
authored
Nov 24, 2014
by
Don Gagne
Browse files
Fixes for new _connect/_disconnect apis
parent
74e1e580
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/XbeeLink.cpp
View file @
2af98191
...
@@ -168,7 +168,7 @@ bool XbeeLink::hardwareConnect()
...
@@ -168,7 +168,7 @@ bool XbeeLink::hardwareConnect()
bool
XbeeLink
::
_connect
(
void
)
bool
XbeeLink
::
_connect
(
void
)
{
{
if
(
this
->
isRunning
())
this
->
disconnect
();
if
(
this
->
isRunning
())
_
disconnect
();
this
->
start
(
LowPriority
);
this
->
start
(
LowPriority
);
return
true
;
return
true
;
}
}
...
@@ -205,7 +205,7 @@ void XbeeLink::writeBytes(const char *bytes, qint64 length) // TO DO: delete th
...
@@ -205,7 +205,7 @@ void XbeeLink::writeBytes(const char *bytes, qint64 length) // TO DO: delete th
}
}
else
else
{
{
this
->
disconnect
();
_
disconnect
();
emit
communicationError
(
this
->
getName
(),
tr
(
"Could not send data - link %1 is disconnected!"
).
arg
(
this
->
getName
()));
emit
communicationError
(
this
->
getName
(),
tr
(
"Could not send data - link %1 is disconnected!"
).
arg
(
this
->
getName
()));
}
}
}
}
...
...
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