summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@gmail.com>2014-01-08 01:02:24 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-09 17:55:49 +0200
commitfc8f951c077f63199933461652a64e7016355f41 (patch)
tree37db54c270f2dabe2a1378a83ce95b0707d2c327 /profiles
parente5a2670fa91f659b7d0dffba817fc6c229e54e57 (diff)
input: Fix check if device is sixaxis in auth_callback
We need to accept connection if idev is not present but device is sixaxis. This fix not doing so for sixaxis devices.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/input/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/input/server.c b/profiles/input/server.c
index f2e58363b..d85d6a91f 100644
--- a/profiles/input/server.c
+++ b/profiles/input/server.c
@@ -204,7 +204,7 @@ static void auth_callback(DBusError *derr, void *user_data)
goto reject;
}
- if (!input_device_exists(&src, &dst) && dev_is_sixaxis(&src, &dst))
+ if (!input_device_exists(&src, &dst) && !dev_is_sixaxis(&src, &dst))
return;
if (!bt_io_accept(server->confirm, connect_event_cb, server,