Commit 48a3367c authored by Don Gagne's avatar Don Gagne

Leave old setting

parent d6c22d93
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment