Skip to content

Commit

Permalink
[BT] Ignore invalid PS3 reports
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Sep 14, 2024
1 parent cf63c1b commit 0daa3aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/bluetooth/hidp/ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ void bt_hid_ps3_hdlr(struct bt_dev *device, struct bt_hci_pkt *bt_hci_acl_pkt, u
}
bt_hid_cmd_ps3_set_conf(device, &rumble);
#else
bt_host_bridge(device, bt_hci_acl_pkt->hidp_hdr.protocol, bt_hci_acl_pkt->hidp_data, hidp_data_len);
if (bt_hci_acl_pkt->hidp_data[0] != 0xFF) {
bt_host_bridge(device, bt_hci_acl_pkt->hidp_hdr.protocol, bt_hci_acl_pkt->hidp_data, hidp_data_len);
}
#endif
break;
}
Expand Down

0 comments on commit 0daa3aa

Please sign in to comment.