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
802ffa2a
Commit
802ffa2a
authored
Feb 23, 2016
by
Don Gagne
Browse files
Fix multipleSignalsAllowed check
parent
997ddde6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qgcunittest/MultiSignalSpy.cc
View file @
802ffa2a
...
...
@@ -92,7 +92,8 @@ bool MultiSignalSpy::_checkSignalByMaskWorker(quint16 mask, bool multipleSignals
QSignalSpy
*
spy
=
_rgSpys
[
i
];
Q_ASSERT
(
spy
!=
NULL
);
if
((
multipleSignalsAllowed
&&
spy
->
count
()
==
0
)
||
spy
->
count
()
!=
1
)
{
if
((
multipleSignalsAllowed
&&
spy
->
count
()
==
0
)
||
(
!
multipleSignalsAllowed
&&
spy
->
count
()
!=
1
))
{
qDebug
()
<<
"Failed index:"
<<
i
;
_printSignalState
();
return
false
;
}
...
...
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