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
bb149b52
Commit
bb149b52
authored
May 20, 2019
by
Patrick José Pereira
Browse files
LinkManager: Use toByteArray
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
119221eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/LinkManager.cc
View file @
bb149b52
...
@@ -931,7 +931,7 @@ void LinkManager::_activeLinkCheck(void)
...
@@ -931,7 +931,7 @@ void LinkManager::_activeLinkCheck(void)
QSignalSpy
spy
(
link
,
SIGNAL
(
bytesReceived
(
LinkInterface
*
,
QByteArray
)));
QSignalSpy
spy
(
link
,
SIGNAL
(
bytesReceived
(
LinkInterface
*
,
QByteArray
)));
if
(
spy
.
wait
(
100
))
{
if
(
spy
.
wait
(
100
))
{
QList
<
QVariant
>
arguments
=
spy
.
takeFirst
();
QList
<
QVariant
>
arguments
=
spy
.
takeFirst
();
if
(
arguments
[
1
].
value
<
Q
ByteArray
>
().
contains
(
"nsh>"
))
{
if
(
arguments
[
1
].
to
ByteArray
().
contains
(
"nsh>"
))
{
foundNSHPrompt
=
true
;
foundNSHPrompt
=
true
;
}
}
}
}
...
...
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