summaryrefslogtreecommitdiff
path: root/compat/hidd.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/hidd.c')
-rw-r--r--compat/hidd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/compat/hidd.c b/compat/hidd.c
index 2dae3a767..64dd455e6 100644
--- a/compat/hidd.c
+++ b/compat/hidd.c
@@ -237,14 +237,13 @@ static int request_encryption(bdaddr_t *src, bdaddr_t *dst)
return err;
}
-static void enable_sixaxis(int csk)
+static int enable_sixaxis(int csk)
{
const unsigned char buf[] = {
0x53 /*HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE*/,
0xf4, 0x42, 0x03, 0x00, 0x00 };
- int err;
- err = write(csk, buf, sizeof(buf));
+ return write(csk, buf, sizeof(buf));
}
static int create_device(int ctl, int csk, int isk, uint8_t subclass, int nosdp, int nocheck, int bootonly, int encrypt, int timeout)