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
48a3367c
Commit
48a3367c
authored
Sep 03, 2015
by
Don Gagne
Browse files
Leave old setting
parent
d6c22d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
48a3367c
...
...
@@ -891,7 +891,10 @@ void Vehicle::setJoystickEnabled(bool enabled)
if
(
!
fact
)
{
qCWarning
(
JoystickLog
)
<<
"Missing COM_RC_IN_MODE parameter"
;
}
fact
->
setValue
(
enabled
?
1
:
0
);
if
(
fact
->
value
().
toInt
()
!=
2
)
{
fact
->
setValue
(
enabled
?
1
:
0
);
}
_joystickEnabled
=
enabled
;
_startJoystick
(
_joystickEnabled
);
...
...
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