From 901e688c819ad92d54deb88766824cfe4b6dbb38 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Fri, 30 Oct 2020 16:28:17 -0400 Subject: [PATCH] [PS4/5] Fixup broken PS4 support --- main/adapter/ps4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/adapter/ps4.c b/main/adapter/ps4.c index 9fc51cac..76acaad0 100644 --- a/main/adapter/ps4.c +++ b/main/adapter/ps4.c @@ -173,11 +173,11 @@ void ps_hid_to_generic(struct bt_data *bt_data, struct generic_ctrl *ctrl_data) } void ps4_to_generic(struct bt_data *bt_data, struct generic_ctrl *ctrl_data) { - switch (bt_data->report_type) { - case KB: + switch (bt_data->report_id) { + case 0x01: ps_hid_to_generic(bt_data, ctrl_data); break; - case 11: + case 0x11: ps_ps4_to_generic(bt_data, ctrl_data); break; default: